[Lazarus] Filling ListBox without triggering OnSelectionChange
Bart
bartjunk64 at gmail.com
Fri Jan 9 13:31:27 CET 2015
On 1/9/15, Marc Santhoff <M.Santhoff at web.de> wrote:
> Tried that solution already, but it does not help. There must be
> something special later in the form creation chain, that forces
> selection on the listbox and in turn trigger SelectionChange.
Filling at designtime and setting ItemIndex to -1 also shows this behaviour:
- Itemindex will be 0 at program start
- OnSelectionChange is fired (with User = True).
Only happens on GTK2
QT behaves as expected.
Filed a bugreport about it: http://bugs.freepascal.org/view.php?id=27276
Bart
More information about the Lazarus
mailing list