Reputation: 359
I'm using XE7 and FMX.
My problem is that the OnChange-Event for TListbox works not correctly with multiselect (it does not fire everytime when a change occured).
Steps to reproduce:
Can tell me somebody how I can fix this, so that everytime when a the selection changes I get a event.
Upvotes: 3
Views: 407
Reputation: 34919
From documentation FMX.ListBox.TCustomListBox.OnChange:
Occurs when the selection in the list box changes. Write an OnChange event handler to take specific action immediately after a new item or items are selected in the list box.
Use the OnClick
or OnItemClick
event instead to monitor when the user reselects the same selection. And keep the OnChange
handler for all new selections.
Upvotes: 1