Hello,
Im creating runtime contorl in borland builder:
TcheckBox *cBox = new TCheckBox(Form1);
I also craete its runtime 'Click' event handler:
void __fastcall TForm1::cBoxClick(TObject *Sender)
{
TCheckBox *ClickedBox = dynamic_cast<TCheckBox *>(Sender);
...
...
}
I get compilation error that cBoxClick is not a memeber of TForm1.
I remove the 'TForm1' from the declarionof the function and the compilation goes well. But then wehn I click the CheckBox, nothing happens. Can someone help me with this? Don't I need to write something like: cBox->onClick = cBoxClick(...)? I tried this as well and also got compilation error.
I would be thankful for your ideas.
zvikorn
Im creating runtime contorl in borland builder:
TcheckBox *cBox = new TCheckBox(Form1);
I also craete its runtime 'Click' event handler:
void __fastcall TForm1::cBoxClick(TObject *Sender)
{
TCheckBox *ClickedBox = dynamic_cast<TCheckBox *>(Sender);
...
...
}
I get compilation error that cBoxClick is not a memeber of TForm1.
I remove the 'TForm1' from the declarionof the function and the compilation goes well. But then wehn I click the CheckBox, nothing happens. Can someone help me with this? Don't I need to write something like: cBox->onClick = cBoxClick(...)? I tried this as well and also got compilation error.
I would be thankful for your ideas.
zvikorn