Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > Tools

Lost Password?

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-08-2011, 10:23 PM
Typhoonbot Typhoonbot is offline
Junior Member
 
Join Date: Nov 2010
Posts: 15
Default Make a small menu appear when clicking an image

Hi guys, I need a small menu to appear at the mouse when I right click a TImage component. I know how to catch the right click (thats easy enough) but is there a way to create a small menu where I can add a few buttons that can be clicked like an options menu when the image is clicked?

Thanks
  #2  
Old 09-08-2011, 11:46 PM
nester261 nester261 is offline
Moderator
 
Join Date: Jan 2004
Location: UK
Posts: 618
Default

You can just assign a TPopupMenu to the Image Component either at runtime or through the Object Inspector.
__________________
"Where there's a will, there's always a way."

-- The Hon Robert Nester Marley O.M. - aka Bob Marley!
  #3  
Old 09-09-2011, 12:06 AM
Typhoonbot Typhoonbot is offline
Junior Member
 
Join Date: Nov 2010
Posts: 15
Default

Hi Nester, I really appreciate your reply.

This has worked perfectly, Thank you very much.
Closed Thread

Tags
click, image, menu, small

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.