Lostgallifreyan <z.c...@btinternet.com> wrote: (30/12/2010 15:53) >>function FeedBack(event) >> local Id = event.Id >> ..... old code for feed back >>end >> >>for I=7,151 do >> CT[I]:Connect(wx.wxEVT_KILL_FOCUS, FeedBack) >>end >> > >.....I see your point, but I have other calls to FeedBack() that have an ID, >are not event driven. If I could test for variable type at the start of >FeedBack() this might work, possibly? I don't know if the event passed to a >variable HAS a type, in the Lua sense of the word... >
Andre, your code works fine for the de-focus bit now, with the first line of FeedBack being: if type(ID)=="userdata" then ID=ID:GetId() end This is neat enough to please me well, though it still leaves SpinCtrl's event signals wanting. If they'd just let us have the update signal every time an internal update occured, we'd be ok. Either that or NO internal update occurs if no signal is sent. But "signal always" (whether the internal update occurs by text entry, arrow keys, button click, mousewheel, de-focus, or anything else) MUST be the better choice, because that lets us code fixes which is otherwise impossible. ------------------------------------------------------------------------------ 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