/
help.ec
63 lines (48 loc) · 1.32 KB
/
help.ec
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
import "ecere"
import "mainpanel"
class Help : Window
{
caption = "";
background = black;
borderStyle = fixed;
hasClose = true;
stayOnTop = true;
clientSize = { 400, 400 };
position = { 155, 140 };
moveable = true;
Picture picture1
{
this, caption = "mainframe", position = { }, image = { ":help.gif" };
bool NotifyActivate(Window window, bool active, Window previous)
{
return true;
}
bool OnLeftButtonDown(int x, int y, Modifiers mods)
{
if(x > 0 && x < 400 && y > 0 && y < 360) { help.MenuWindowMove(null, mods); }
return true;
};
bool OnLeftButtonUp(int x, int y, Modifiers mods)
{
if(x > 132 && x < 146 && y > 380 && y < 396) { help.Destroy(0); }
if(x > 102 && x < 118 && y > 380 && y < 396) { info.Create(); }
return true;
}
bool OnMouseMove(int x, int y, Modifiers mods)
{
mainpanel.picture30.visible = false;
return true;
}
}
bool OnCreate(void)
{
about.Destroy(0);
enckey.Destroy(0);
sounds.Destroy(0);
changename.Destroy(0);
portssetup.Destroy(0);
info.Destroy(0);
return true;
}
};
Help help { mainpanel, autoCreate = false; };