[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppVclSender
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppVclSender
(C++ VCL) Sender
Common identifier name for TForm Events. You can use it to find out which class called the Event.
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if (Sender==Button2) ShowMessage("I am clicked by Button2!");
}
void __fastcall TForm1::Button2Click(TObject *Sender)
{
Button1Click(Button2);
}
Code links
- __fastcall
- if
- ShowMessage
- ?TForm1
- TObject
- void
'Sender' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
