[Lazarus] TComboBox and OnChange

Michael Fuchs freepascal at ypa-software.de
Wed Mar 24 23:42:37 CET 2010


zeljko:

> so if user types text it'll call OnChange() for each char like in TEdit ?

Yes.

> hm...I don't like it.

Why not?


> Does work this (cannot try at the moment) ?
> i := ComboBox1.Items.Add('something');
> ComboBox1.ItemIndex := i;
> OnChange() should fire on itemindex change if I remember correctly.

No, this also didn't work.

bye
Michael




More information about the Lazarus mailing list