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:
- Create a FMX-application and add a TListbox to his form.
- Add items to this listbox.
- Set 'MultiSelectStyle' of Listbox to 'default'.
- Handle the OnChangeEvent (set a breakpoint or do something ...).
- Now run the project and click on the first Item -> OnChange is executed.
- But if first item is clicked again the OnChange will not be executed.
Can tell me somebody how I can fix this, so that everytime when a the selection changes I get a event.
From documentation FMX.ListBox.TCustomListBox.OnChange:
Use the
OnClickorOnItemClickevent instead to monitor when the user reselects the same selection. And keep theOnChangehandler for all new selections.