-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdialog.app
More file actions
34 lines (26 loc) · 823 Bytes
/
dialog.app
File metadata and controls
34 lines (26 loc) · 823 Bytes
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
//-------------------------------------------------------------------
// 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;
}
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");
DialogRun (dialog, "Main Dialog TITLE - Exit ?");