Hello,
I would like to create a CheckBox dynamicaly when the form is created.
The code will look like that:
TCheckBox *cBox=new TCheckBox (MainForm);
cBox->Name=......;
cBox->Parent = MainForm;
.
.
.
Q: I want to do something when the user click the CheckBox at runtime.
Since the CheckBox was not created as design time, there is no function called 'CheckBox1Click(......)' to override and write my code in it.
How do I write my code , for this scenario then?
How do I write my code for events for controls that are created at runtime?
Thanks a lot.
Tzvika
I would like to create a CheckBox dynamicaly when the form is created.
The code will look like that:
TCheckBox *cBox=new TCheckBox (MainForm);
cBox->Name=......;
cBox->Parent = MainForm;
.
.
.
Q: I want to do something when the user click the CheckBox at runtime.
Since the CheckBox was not created as design time, there is no function called 'CheckBox1Click(......)' to override and write my code in it.
How do I write my code , for this scenario then?
How do I write my code for events for controls that are created at runtime?
Thanks a lot.
Tzvika