MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / LabelClick

Method LabelClick

source/aboutbox.cpp:26–37  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

24}
25//---------------------------------------------------------------------------
26void __fastcall TAboutBoxForm::LabelClick(TObject * Sender)
27{
28 switch( ((TLabel *)Sender)->Tag )
29 {
30 case 1: ShellExecute(GetDesktopWindow(), "open",
31 ((TLabel *)Sender)->Caption.c_str(), NULL, NULL, SW_SHOWNORMAL);
32 break;
33 case 2: ShellExecute(GetDesktopWindow(), "open",
34 (AnsiString("mailto:") + ((TLabel *)Sender)->Caption).c_str(), NULL, NULL, SW_SHOWNORMAL);
35 break;
36 }
37}
38//---------------------------------------------------------------------------
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected