On 07/27/2015 07:47 AM, Péter Gábor wrote:
if Sender = TButton then { do something} ;
I suppose you meant

if Sender is TButton then { do something} ;


OP: If you want to deal with a lot of different classes that might be the 
sender, it might help to define an array of these classes (types) and search it.


-Michael


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

Reply via email to