[Lazarus] Filling ListBox without triggering OnSelectionChange
Marc Santhoff
M.Santhoff at web.de
Fri Jan 9 15:31:44 CET 2015
On Fr, 2015-01-09 at 13:31 +0100, Bart wrote:
> 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.
I see.
> Filed a bugreport about it: http://bugs.freepascal.org/view.php?id=27276
Thank you!
--
Marc Santhoff <M.Santhoff at web.de>
More information about the Lazarus
mailing list