[litwindow-users] Re: Accessing Items
Status: Alpha
Brought to you by:
hajokirchhoff
From: Hajo K. <mai...@ha...> - 2005-04-18 09:52:30
|
Hi > Are there any provisions for allowing user code to access the RapidUI lookup > mechanism? If I want to create a general event handler for all lists, it > would be nice to retrieve the Items property for the list that generated the > event. I forgot to say: have a look at wxTextCtrlAdapter. The adapter demonstrates what you are trying to do. wxTextCtrlAdapter extends the wxTextCtrl so that it accepts a double. When it contains a double, the adapter will copy the value back from the text control to the double when the focus is lost. The KillFocus event accesses the "Double" property of the underlying TextControl, much as you plan with the "Items" property. In fact, your generic handler should probably be part of your wxListCtrlAdapter. That way you don't even have to worry about attaching/detaching it. Best regards Hajo |