how to catch mouse clicks on an image ?

Hello,

Whats the 'self' in your code below? The panel?

If so the panel isn't going to receive the mouse events for the StaticBitmap. Either try binding directly to the StaticBitmap or use a BitmapButton with the NO_BORDER style flag as that kind of sounds like what you probably want anyway.

Regards,

Cody

···

On Apr 28, 2008, at 4:31 PM, Stef Mientki wrote:

hello,

I'm trying to mimick the win-mobile's soft keyboard.
So I made a panel with an image (StaticBitmap) of the keyboard,
and now I want to catch mouse events,
but the following doesn't seem to work:

  self.Bind ( wx.EVT_LEFT_DOWN, self._On_KB )
  self.Bind ( wx.EVT_MOUSE_EVENTS, self._On_KB )

Isn't it possible to catch mouse events from a StaticBitmap ?
If not, are there other ways to realize the same functionality ?

thanks,
Stef

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users