-
Notifications
You must be signed in to change notification settings - Fork 2
/
FormConfig.cpp
78 lines (63 loc) · 2.08 KB
/
FormConfig.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
//---------------------------------------------------------------------------
#include <fmx.h>
#pragma hdrstop
#include <tchar.h>
#include "FormConfig.h"
#include "DataModStyleRes.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.fmx"
//TfrmConfig *frmConfig;
//---------------------------------------------------------------------------
__fastcall TfrmConfig::TfrmConfig(TComponent* Owner )
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
__fastcall TfrmConfig::~TfrmConfig()
{
}
//---------------------------------------------------------------------------
void __fastcall TfrmConfig::actOKExecute(TObject *Sender)
{
ModalResult = mrOk;
}
//---------------------------------------------------------------------------
void __fastcall TfrmConfig::actOKUpdate(TObject *Sender)
{
//
}
//---------------------------------------------------------------------------
void __fastcall TfrmConfig::actCancelExecute(TObject *Sender)
{
ModalResult = mrCancel;
}
//---------------------------------------------------------------------------
void __fastcall TfrmConfig::tvMainChange(TObject *Sender)
{
if ( tabcontrolMain ) {
tabcontrolMain->ActiveTab =
tabcontrolMain->Tabs[tvMain->Selected->Index];
}
}
//---------------------------------------------------------------------------
bool TfrmConfig::GetAutoStart() const
{
return switchAutoStart->IsChecked;
}
//---------------------------------------------------------------------------
void TfrmConfig::SetAutoStart( bool Val )
{
switchAutoStart->IsChecked = Val;
}
//---------------------------------------------------------------------------
bool TfrmConfig::GetAutoMinimizeOnTray() const
{
return switchAutoMinimizeOnTray->IsChecked;
}
//---------------------------------------------------------------------------
void TfrmConfig::SetAutoMinimizeOnTray( bool Val )
{
switchAutoMinimizeOnTray->IsChecked = Val;
}
//---------------------------------------------------------------------------