-
Notifications
You must be signed in to change notification settings - Fork 1
/
Unit1.cpp
69 lines (49 loc) · 1.68 KB
/
Unit1.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
//---------------------------------------------------------------------------
#include <fmx.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.fmx"
#include "Unit2.h"
#include "Unit4.h"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender) // ñîçäàíèå âòîðîé ôîðìû, ïîäãîí ïîä ýêðàí
{
Layout1->Scale->X = Layout2->Width / Layout1->Width;
Layout1->Scale->Y = Layout2->Height / Layout1->Height;
/*Form2->Layout1->Scale->X = Layout1->Scale->X;
Form2->Layout1->Scale->Y = Layout1->Scale->Y; */
//Form2->Create();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SpeedButton1Click(TObject *Sender)
{
Form1->Hide();
Form2->Show();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Image2Click(TObject *Sender)
{
Form1->Hide();
Form2->Show();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Image4Click(TObject *Sender)
{
Form4->ShowRec(0); // ShowMessage("Òóò âñå êðàñèâî:)");
Form1->Hide();
Form4->Show();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Image3Click(TObject *Sender)
{
ShowMessage("Tyt vse po dzeny:)");
}
//---------------------------------------------------------------------------