Andre Arpin <ar...@kingston.net> wrote:
(29/12/2010 21:42)

>sp:Connect(wx.wxEVT_KILL_FOCUS,
>    function(event)
>        print('k')
>    end)
>    

Thanks again for this, it works great.

I had to modify it to this:

for I=7,151 do
  CT[I]:Connect(wx.wxEVT_KILL_FOCUS,
    function(EV)  FeedBack(EV:GetId())  end
  )
end

...because I have a largish number of spinctrls (which is why it angers me that 
they fail as they do now, an entire program is ruined if I can't resolve this, 
it depends almost entirely on spinctrls!

If you have an equally neat trick to solve the spinctrl's habit of replacing 
text with the internal numeric value every time I hit the MAX or MIN limit, 
please show me. This is by far the more serious problem because the internal 
handling updates the display but does not send a signal! That means there is 
likely no simple way to prevent it doing this, except to detect any click as 
you showed in the first mail.

The problem with all this is that no matter how neat it is, that's now two 
functions, each connected to over 100 controls! This is NOT what people need, I 
thought the point of wxWidgets and wxLua was to enable fast easy building of 
programs, especially for those of us who don't know the depths behind the 
scenes. If I'm wrong about this, I doubt the control would ever have worked 
this way without this extra coding, but it did. All I ask (beyond any specific 
problem) is that it do so again, because instead of remembering basic use of a 
spinctrl I now have to keep a library of extra code just to get its original 
basic behaviour.



------------------------------------------------------------------------------
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

Reply via email to