-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit3.cpp
41 lines (38 loc) · 1.63 KB
/
Unit3.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit3.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TAboutForm *AboutForm;
//---------------------------------------------------------------------------
__fastcall TAboutForm::TAboutForm(TComponent* Owner)
: TForm(Owner)
{
// отключаем влияние стиля на цвет шрифта
AlexellLink->StyleElements = AlexellLink->StyleElements >> seFont;
GitHubLink->StyleElements = GitHubLink->StyleElements >> seFont;
MSSLink->StyleElements = MSSLink->StyleElements >> seFont;
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::AlexellLinkClick(TObject *Sender)
{
ShellExecute(NULL, L"open", L"https://alexell.ru", NULL, NULL, SW_SHOWNORMAL);
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::MSSLinkClick(TObject *Sender)
{
ShellExecute(NULL, L"open", L"https://mss-project.org", NULL, NULL, SW_SHOWNORMAL);
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::CloseButtonClick(TObject *Sender)
{
AboutForm->Close();
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::GitHubLinkClick(TObject *Sender)
{
ShellExecute(NULL, L"open", L"https://github.com/Alexell/Metrostroi_Monitor", NULL, NULL, SW_SHOWNORMAL);
}
//---------------------------------------------------------------------------