added .gitignore for all to enjoy
[installer] / licenseBox.ec
1 #ifdef ECERE_STATIC
2 import static "ecere"
3 #else
4 import "ecere"
5 #endif
6
7 class LicenseBox : Window
8 {
9    text = "Ecere SDK License Agreement";
10    size = { 640, 480 };
11    hasClose = true;
12    borderStyle = sizable;
13    background = activeBorder;
14    tabCycle = true;
15    font = { "Verdana", 10 };
16    
17    EditBox editBox
18    {
19       this,
20       multiLine = true;
21       hasHorzScroll = true;
22       hasVertScroll = true;
23       borderStyle = deep;
24       anchor = { 10, 10, 10, 40 };
25       readOnly = true;
26       noCaret = true;
27    };
28    property char * sourceFile
29    {
30       set
31       {
32          File f = FileOpen(value, read);
33          if(f)
34          {
35             editBox.Load(f);
36             delete f;
37          }
38       }
39    }
40    Button dontAgreeButton
41    {
42       this;
43       text = "I don't agree";
44       size = { 100, 22 };
45       anchor = { bottom = 10, right = 14 };
46
47       bool NotifyClicked(Button button, int x, int y, Modifiers mods)
48       {
49          ((GuiApplication)__thisModule).desktop.Destroy(0);
50          return true;
51       }
52    };
53    Button agreeButton
54    {
55       this;
56       text = "I agree";
57       isDefault = true;
58       size = { 80, 23 };
59       anchor = { bottom = 10 };
60       NotifyClicked = ButtonCloseDialog;
61    };
62 }