Re: Win32Lib: onChange Event for List Not Working (?)
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 16, 2004
- 471 views
cklester wrote: > > Derek, this program demonstrates on my PC that the onChange event for the > ListBox is not working as expected. Notice I said "as expected," because > maybe my expectations are off a bit. :) > > When you click the "Add" or "Remove" button, it changes the List. The > change in the list should trigger a change in the appearance of the "Next" > button... but it doesn't. > > Any help will be appreciated. Just change 'w32HChange' to 'w32HDataChange'. The w32HChange detects changes in the selection. In other words, this is fired when the selection changes from one item to another. The w32HDataChange is fired when items are added or deleted from a List or a Combo control. The parameters for the Data Change event are ... { eventqual, index } where eventqual is one of w32CHG_Add = Item added (List & Combo) w32CHG_Del = Item deleted (List & Combo) w32CHG_Chg = Item changed (Combo) and index is the index of the item added/deleted. -- Derek Parnell Melbourne, Australia