[Lazarus] Filling ListBox without triggering OnSelectionChange

Marc Santhoff M.Santhoff at web.de
Wed Jan 7 07:49:26 CET 2015


Hi,

it has been a very long time since I've programmed GUIs. I have
forgotten how to fill a ListBox without having the event handler
OnSelectionChange executed.

I have tried (Un)LockSelectionChange on the list, setting ItemIndex to
-1, all in the forms create method. I've tried using add() or assign()
on the listbox's Items, nothing helps.

The wiki on TListBox doesn't say anything on this topic, neither does
the LCL help document.

How can it be done?

-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list