-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdialog_version_0.93.0.app
44 lines (32 loc) · 1 KB
/
dialog_version_0.93.0.app
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
//-------------------------------------------------------------------
// Dialog Script Example:
//
// USAGE:
// dream dialog.app
//
// To Run This Script ... IN EDITOR | PRESS KEY ( CTRL + R ):
//
//-------------------------------------------------------------------
//
int a = 100;
OBJECT dialog, button_add, button_sub;
function call_button_add (msg) {
a = a + 1;
a; // display value;
}
function call_button_sub (msg) {
a = a - 1;
a; // display value;
}
if (!dialog) {
printf ("script: PRIMEIRA VEZ ... Dialog criando com IF\n");
dialog = DialogNew (100, 100, 600, 400);
button_add = app_NewButton (dialog, 12345, 100, 100, "ADD");
button_sub = app_NewButton (dialog, 12345, 250, 100, "SUB");
SetCall (button_add, "call_button_add");
SetCall (button_sub, "call_button_sub");
}
if (dialog) {
printf ("script: Dialog EXECUTANDO ... test IF\n");
DialogRun (dialog, "Main Dialog TITLE - Exit ?");
}