-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainFormUnit.cpp
110 lines (110 loc) · 4.12 KB
/
MainFormUnit.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//$$---- Form CPP ----
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "MainFormUnit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "RzLabel"
#pragma link "RzEdit"
#pragma link "RzBorder"
#pragma resource "*.dfm"
TMainForm *MainForm;
//---------------------------------------------------------------------------
__fastcall TMainForm::TMainForm(TComponent* Owner) : TForm(Owner)
{
fs = ExitLabel->Font->Style;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::ExitLabelMouseEnter(TObject *Sender)
{
Memo->Text = " Âûõîä èç ïðîãðàììû óñòàíîâêè.";
ExitLabel->Font->Style = TFontStyles() << fsUnderline << fsBold;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::WebLabelMouseEnter(TObject *Sender)
{
Memo->Text = " Îòêðûòü âåá-ñàéò Incorex Ltd.";
WebLabel->Font->Style = TFontStyles() << fsUnderline << fsBold;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::BrowseLabelMouseEnter(TObject *Sender)
{
Memo->Text = " Ïðîñìîòð ôàéëîâ óñòàíîâêè íà CD.";
BrowseLabel->Font->Style = TFontStyles() << fsUnderline << fsBold;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::TilchiLabelMouseEnter(TObject *Sender)
{
AnsiString text = " Óñòàíîâêà ñèñòåìû ýëåêòðîííûõ ñëîâàðåé Incorex ";
text += " Tilchi 1.0 íà Âàø ïåðñîíàëüíûé êîìïüþòåð.";
text += "\r\n © 2007 Incorex Ltd.";
text += "\r\n Âñå ïðàâà çàùèùåíû.";
Memo->Text = text;
TilchiLabel->Font->Style = TFontStyles() << fsUnderline << fsBold;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::TilchiLabelMouseLeave(TObject *Sender)
{
TilchiLabel->Font->Style = fs;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::BrowseLabelMouseLeave(TObject *Sender)
{
BrowseLabel->Font->Style = fs;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::WebLabelMouseLeave(TObject *Sender)
{
WebLabel->Font->Style = fs;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::ExitLabelMouseLeave(TObject *Sender)
{
ExitLabel->Font->Style = fs;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::TilchiLabelClick(TObject *Sender)
{
ShellExecute(Handle, "open", "Setup\\setup.exe", 0, 0, SW_SHOW);
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::BrowseLabelClick(TObject *Sender)
{
ShellExecute(Handle, "open", 0, 0, GetCurrentDir().c_str(), SW_SHOW);
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::WebLabelClick(TObject *Sender)
{
ShellExecute(Handle, "open", "http://www.incorex.com", 0, 0, SW_SHOW);
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::ExitLabelClick(TObject *Sender)
{
Application->Terminate();
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::FormShow(TObject *Sender)
{
Screen->Cursors[1] = LoadCursor(HInstance,"LINK_CURSOR");
SetLinkCursor(TilchiImage);
SetLinkCursor(BrowseImage);
SetLinkCursor(WebImage);
SetLinkCursor(ExitImage);
SetLinkCursor(IncorexImage);
SetLinkCursor(TilchiLabel);
SetLinkCursor(BrowseLabel);
SetLinkCursor(WebLabel);
SetLinkCursor(ExitLabel);
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::SetLinkCursor(TControl *Control)
{
Control->Cursor = (TCursor) 1;
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::IncorexImageClick(TObject *Sender)
{
ShellExecute(Handle, "open", "http://www.incorex.com", 0, 0, SW_SHOW);
}
//---------------------------------------------------------------------------