'TNotifyEvent trouble, how work with onclick

I am using rad studio with c++. I had made a button from code with the following:

TButton *a = new TButton(this); a->Parent = Form1; a->Text = "dsssdsd"; Please I need asociate an onlick event for this button, I have tried for days, but nothing. Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source