I am using Borland C++ Builder and am created an object (in this specific instance, a TLabel) in runtime:
PreviewItem(TPanel *Parent, String ImageSource, String CaptionText)
...create Container and other componants...
SelMask = new TLabel(Container);
SelMask->Parent = Container;
...set proterties for SelMask...
I want to set it's OnClick method to a function within the PreviewItem class. How would I do this?