Dialog » History » Version 3
Per Amundsen, 08/14/2015 01:55 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | */dialog -abcdeghikmnoprstvx <name> [newname|table] [x y w h] [text]* |
||
4 | |||
5 | Allows you to create a modeless dialog with the -m switch. |
||
6 | |||
7 | *Switches* |
||
8 | |||
9 | 2 | Per Amundsen | -a - Used with -m, uses currently active window as the parent. (TODO) |
10 | -b - Interprets size as dbu. (TODO) |
||
11 | -c - Click cancel button. |
||
12 | 1 | Per Amundsen | -d - Open dialog on the desktop, used with -m. |
13 | -e - Restores the dialog if created on the desktop. |
||
14 | -g - Renames existing dialog using <name> <newname>. |
||
15 | 2 | Per Amundsen | -h - Make dialog work with active server connection. (TODO) |
16 | 1 | Per Amundsen | -i - Minimize the dialog if created on the desktop. |
17 | -k - Click ok button. |
||
18 | -m - Create a modeless dialog using 'table'. |
||
19 | -n - Unset ontop setting. |
||
20 | -o - Set dialog ontop of all windows. |
||
21 | 2 | Per Amundsen | -p - Interprets size as pixels. (TODO) |
22 | 1 | Per Amundsen | -r - Centers dialog. |
23 | -s - Set dialog size/position. |
||
24 | -t - Set dialog title to 'text'. |
||
25 | -v - Makes the dialog the active window. |
||
26 | -x - Close a dialog without triggering any events. |
||
27 | |||
28 | *Parameters* |
||
29 | |||
30 | <name> - Name of the dialog to creae. |
||
31 | [newname] - Newname used with -g |
||
32 | [table] - Name of the dialog table to use. |
||
33 | [x y w h] - X/Y Position on the desktop and the Height/Width of the dialog. |
||
34 | [text] - Dialog title text. |
||
35 | |||
36 | *Example* |
||
37 | |||
38 | <pre> |
||
39 | 3 | Per Amundsen | : Create a dialog table. |
40 | 1 | Per Amundsen | Dialog Example1 { |
41 | title "This is Example 1" |
||
42 | size -1 -1 172 129 |
||
43 | option dbu |
||
44 | tab "Tab A", 14, 2 0 165 123 |
||
45 | tab "Tab B", 15 |
||
46 | tab "Tab C", 16 |
||
47 | edit "", 17, 8 16 154 104, tab 16 multi return autohs vsbar |
||
48 | menu "&File", 1 |
||
49 | item "&New", 6, 1 |
||
50 | item "&Open", 7, 1 |
||
51 | item break, 8, 1 |
||
52 | item "&Save", 9, 1 |
||
53 | item "Save &as", 10, 1 |
||
54 | menu "&Edit", 2 |
||
55 | item "&Copy", 11, 2 |
||
56 | item "P&aste", 12, 2 |
||
57 | menu "&view", 3 |
||
58 | item "&All", 13, 3 |
||
59 | menu "&Help", 4 |
||
60 | item "&About", 5, 4 |
||
61 | } |
||
62 | |||
63 | 3 | Per Amundsen | ; Create and show the dialog as modeless and on the desktop. |
64 | 1 | Per Amundsen | /dialog -md Example1 Example1 |
65 | </pre> |