From: The D. <the...@bl...> - 2005-06-26 17:53:00
|
The problem isn't the spincontrols. I only quoted those as an example of what works. The mouse event stuff is much less easy. Most of the mouse stuff seems to be absent, lots of things in the wxWidgets manual don't have any meaning in wxLua as far as I know. My specific problem is that I can't do FRAME:ConnectEvent(-1,wx.wxEVT_LEFT_DCLICK,DoStuff) and then make it work for anything I left click on the frame. If I have FRAME:ConnectEvent(-1,wx.wxEVT_COMMAND_SPINCTRL_UPDATED,DoStuff) I can put a spin control on a page on a notebook on a panel on a frame, and it will work. All spin controls will work, wherever they are. If I have FRAME:ConnectEvent(-1,wx.wxEVT_LEFT_DCLICK,DoStuff) ONLY the frame can be clicked! I must specify an exact one-to-one relationship for every control I want to click! I have 6 on each of three pages. Right now the required code will bulk to about 25% of all my active code because there is no way to sensible group the controls. I keep looking at it in stupefaction. Though I've found ways to make it work, it's a horrible kludge, and there seems to be no elegant way to do it. |