Andrea,
Thanks. I'll look ab both of these options. I tried
binding directly to the wx.StaticBitmap but it didn't
work either.
I didn't see in the docs anywhere that the wx.StaticBitmap
object ate events. I just may not have been looking in the
right place.
Thanks for the help.
Mark
* Andrea Gavana wrote (on 3/12/2007 12:48 PM):
···
Hi Mark,
On 3/12/07, Mark Elston wrote:
I have a panel with a GridSizer that I use to display wx.Image
objects. I want the user to be able to click on an image to
'select' it. However, I cannot get any mouse event to propagate
to the panel unless it occurs in the space between the displayed
images. Somehow the images are 'eating' the mouse events.
As far as I remember, wx.StaticBitmap eats the event and does not
propagate it to its parent. You might have more luck using
wx.lib.statbmp, or bind the event directly to the wx.StaticBitmap
(though I am not sure it will work) or you may try to modify
ThumbnailCtrl:
http://xoomer.alice.it/infinity77/eng/freeware.html#thumbnailctrl
I hope this helps.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Andrea,
I looked at wx.lib.statbmp and all it contained is a small
class called 'GenStaticBitmap'. I tried using this as a
wrapper around my bitmaps and got all kinds of errors. It
really appears to be some kind of base class but I am not
sure how to make use of it properly.
I'll take a look at the ThumbnailCtrl as it seems (from the
demo) to do most of what I need anyway.
Mark
* Andrea Gavana wrote (on 3/12/2007 1:03 PM):
···
Hi Mark,
On 3/12/07, Mark Elston wrote:
I didn't see in the docs anywhere that the wx.StaticBitmap
object ate events. I just may not have been looking in the
right place.
Well, probably the most correct answer is that wx.StaticBitmap is a
*static* control and doesn't like events. But I am pretty sure that
wx.lib.statbmp will work for you.
Andrea.
* Andrea Gavana wrote (on 3/12/2007 12:48 PM):
> Hi Mark,
>
> On 3/12/07, Mark Elston wrote:
>> I have a panel with a GridSizer that I use to display wx.Image
>> objects. I want the user to be able to click on an image to
>> 'select' it. However, I cannot get any mouse event to propagate
>> to the panel unless it occurs in the space between the displayed
>> images. Somehow the images are 'eating' the mouse events.
>
> As far as I remember, wx.StaticBitmap eats the event and does not
> propagate it to its parent. You might have more luck using
> wx.lib.statbmp, or bind the event directly to the wx.StaticBitmap
> (though I am not sure it will work) or you may try to modify
> ThumbnailCtrl:
>
> http://xoomer.alice.it/infinity77/eng/freeware.html#thumbnailctrl
>
> I hope this helps.
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.virgilio.it/infinity77/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org