Andre Arpin <ar...@kingston.net> wrote: (29/12/2010 21:22) >Lostgallifreyan <z.c...@...> writes: > >> >> Is there a way to tell a wxSpinctrl to always send a signal when a button is >clicked, not just when the value >try > >this is a very long question I just try to anwer your 1st point. > >frame = wx.wxFrame(wx.NULL, wx.wxID_ANY,'') >frame:Show(true) >sp=wx.wxSpinCtrl(frame) >sp:SetRange(23,37) > >sp:Connect(wx.wxEVT_LEFT_UP, > function (event) > print('a') > event:Skip() > end) > >wx.wxGetApp():MainLoop() > >'a' is displayed on any click. >
Thanks for the reply. I realise that I can do this, though I'd have to specify the exact relative area of each button so it knows which I clicked. That's a LOT of code, and as I cintend in my original mail, is a thorough defeat to the point of a spinctrl. Not only do I have to write code to override what cannot be overridden, am I now to have to write my own controls? THis doesn't only defeat the point of the spinctrl, it defeats the point of wxLua and wxWidgets. I turned to these because I did not know C, C++ and the Win32 API. Given how deep I have to go to overcome this, I'd have to take on a system that nullifies any need for wx-anything. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users