Guest_imported
New member
- Jan 1, 1970
- 0
Hello All,
I'm trying to make an array of labels , but I need to pass a function to the function that creates the array. The function that i need to pass is one to be used with the OnClick event of the labels . I'm trying
void __fastcall MyForm::CreateArray(/*parameters*/,void __fastcall MyLabelOnClick(TObject* Sender)
{
for(int i = 0;i<64;i++)
{
/*code goes here*/
lblArray->OnClick = MyLabelOnClick;
}
}
but it's not working . Can anybody help me ?
Thanks in advance
Thor
I'm trying to make an array of labels , but I need to pass a function to the function that creates the array. The function that i need to pass is one to be used with the OnClick event of the labels . I'm trying
void __fastcall MyForm::CreateArray(/*parameters*/,void __fastcall MyLabelOnClick(TObject* Sender)
{
for(int i = 0;i<64;i++)
{
/*code goes here*/
lblArray->OnClick = MyLabelOnClick;
}
}
but it's not working . Can anybody help me ?
Thanks in advance
Thor