action triggered from clicking on a wxstaticbitmap

a follow up question: I'm adding images (wxstaticbitmap) to a sizer which is in a panel. how can I make it so when the I click on the image (anywhere on a 128 X 128 pixels image), a dialog box comes up showing text associated with the image, or a prompt to view the full sized picture or download it? In essence I want some action triggered from clicking on an image in my panel. How can I trigger this action? thanks in advance!

Sameer

Sameer Chowdhury wrote:

a follow up question: I'm adding images (wxstaticbitmap) to a sizer
which is in a panel. how can I make it so when the I click on the image
(anywhere on a 128 X 128 pixels image), a dialog box comes up showing
text associated with the image, or a prompt to view the full sized
picture or download it? In essence I want some action triggered from
clicking on an image in my panel. How can I trigger this action?
thanks in advance!

Why not use a wxBitmapButton ?

you could also try EVT_LEFT_DOWN to bind a left click event to the
StaticBitmap, but I'm not sure it that would work.

-Chris

ยทยทยท

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov