Re: List Change Event

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu