-
Notifications
You must be signed in to change notification settings - Fork 2
/
RegisterMForm.cpp
66 lines (64 loc) · 2.22 KB
/
RegisterMForm.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
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "RegisterMForm.h"
#include "RegisterForm.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "RzButton"
#pragma link "RzEdit"
#pragma link "RzLabel"
#pragma link "RzPanel"
#pragma resource "*.dfm"
TRegisterMFormClass *RegisterMFormClass;
//---------------------------------------------------------------------------
__fastcall TRegisterMFormClass::TRegisterMFormClass(TComponent* Owner) : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TRegisterMFormClass::ApplyButtonClick(TObject *Sender)
{
RegMemo->SelectAll();
RegMemo->CopyToClipboard();
}
//---------------------------------------------------------------------------
void __fastcall TRegisterMFormClass::HelpButtonClick(TObject *Sender)
{
Application->HelpJump("register_email");
}
//---------------------------------------------------------------------------
void __fastcall TRegisterMFormClass::CloseLabelClick(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
void __fastcall TRegisterMFormClass::TopPanelMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
bottonPressed = true;
prevX = X;
prevY = Y;
}
//---------------------------------------------------------------------------
void __fastcall TRegisterMFormClass::TopPanelMouseMove(TObject *Sender,
TShiftState Shift, int X, int Y)
{
if (bottonPressed) {
Left += X - prevX;
Top += Y - prevY;
}
}
//---------------------------------------------------------------------------
void __fastcall TRegisterMFormClass::TopPanelMouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
bottonPressed = false;
}
//---------------------------------------------------------------------------
void __fastcall TRegisterMFormClass::FormCreate(TObject *Sender)
{
Screen->Cursors[1] = LoadCursor(HInstance,"LINK_CURSOR");
CloseLabel->Cursor = (TCursor) 1;
CloseImage->Cursor = (TCursor) 1;
}
//---------------------------------------------------------------------------