jbpelletier
Programmer
I have an array of TButton.. witch all TButton Click event are link to one same event (Button1Click). How to know witch button as been click in that event code.. i know there is something to do with the sender.. but it seems hard to get the correct syntax to use it.. i need something like :
(Sender as TButton)->Enabled=false;
void __fastcall TForm1::Button1Click(TObject *Sender)
{
//This code to give Enabled = false to the clicked button
....
}
jb.
(Sender as TButton)->Enabled=false;
void __fastcall TForm1::Button1Click(TObject *Sender)
{
//This code to give Enabled = false to the clicked button
....
}
jb.