Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Taction objects

Status
Not open for further replies.

nicasa

Programmer
Feb 3, 2003
54
ES
I would like to know how to determine which client associated with the Action1 object actually invokes this event handler. ie how do you determine the identity of Sender within the event handler ??

void __fastcall TForm1::Action1Execute(TObject *Sender)
{
// misssing code here
}


Thanks,

Steven Matthews
 
this might be useful

void __fastcall TForm1::Action1Execute(TObject *Sender)
{
if(dynamic_cast<TMenuItem *>(Sender) != 0)
dynamic_cast <TMenuItem *>(Sender)->Checked = true;
}

tomcruz.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top