[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
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

'Sender' links

  •  ?C++ CLX
  • C++ VCL
  • Pascal CLX
  • Pascal VCL


last edited (November 18, 2006) by bilderbikkel, Number of views: 1496, Current Rev: 3 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.