Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add an OnClick event to TCustomControl?

How do I create OnClick event? I need help with TCustomControl.

like image 777
Little Helper Avatar asked Apr 29 '11 20:04

Little Helper


1 Answers

The OnClick event is defined in TCustomControl already. All you have to do is to make it visible. Add the line

published
  property OnClick;

to your control and you're done!

like image 69
Andreas Rejbrand Avatar answered Nov 10 '22 20:11

Andreas Rejbrand