On Wednesday 24 March 2010 23:42, Michael Fuchs wrote:
> 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?

1. It breaks delphi compatibility
2. It breaks current apps which rely on combo OnChange() like dmitry stated 
eg. 
MyCombo.Text := 'blah'; 
MyComboChange(MyCombo);
So if such combo have OnChange() assigned it'll fire twice.
Problem is not in small apps, but apps with hundreds of forms and hundreds of 
combos are real PITA.


In your case I'll prefer to add new event OnComboTextChange instead of firing 
text changes in OnChange().

zeljko

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to