how can I make a left mouse click menu for staricText item
thanks!
Any item should accept a mouse-click. I would bind the click to the
StaticText window, and in the event handler create the menu. I find it
easier to get my menu IDs by calling NewId() a bunch of times, and
binding those to the window on creation.
See http://wiki.wxpython.org/PopupMenuRevised and
http://wiki.wxpython.org/PopupMenuOnRightClick for details. Play with
the code.
Most menus are contextual, and those come from the right click, but
you should be able to do this on a left click, I'm just not sure why
you would want to do this.
Good luck,
Josh
ยทยทยท
--
Josh English
Joshua.R.English@gmail.com
http://joshenglish.livejournal.com