Re: List Change Event
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 26, 2004
- 570 views
cklester wrote: > > Derek Parnell wrote: > > cklester wrote: > > > Derek, > > > Shouldn't addItem(aList,anItem) trigger a w32HChange event for a List? > > > > An event should be triggered and I assumed that Windows did, but it doesn't > > so I'm going to add it in myself. For ComboBox lists, Windows already > > triggers this event but not for ListBoxes. > > Does Microsoft explain this behavior? It doesn't seem right. As if... !!! Anyhow, the change I've added to win32lib now might break some existing code. This is because the w32HChange handler will be invoked when a list item is added or deleted, or when the selection is changed to another item. The 'params' parameter passed to the handler can be used to distinguish the reason for being called. This also effects combo boxes the same way , plus the handler is called whenever the edit box area is modified. The current behaviour is that the handler is invoked only when the selection is changed. -- Derek Parnell Melbourne, Australia