Dialog » History » Version 2
Per Amundsen, 02/09/2014 05:15 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 | Dialog Example1 { |
||
40 | title "This is Example 1" |
||
41 | size -1 -1 172 129 |
||
42 | option dbu |
||
43 | tab "Tab A", 14, 2 0 165 123 |
||
44 | tab "Tab B", 15 |
||
45 | tab "Tab C", 16 |
||
46 | edit "", 17, 8 16 154 104, tab 16 multi return autohs vsbar |
||
47 | menu "&File", 1 |
||
48 | item "&New", 6, 1 |
||
49 | item "&Open", 7, 1 |
||
50 | item break, 8, 1 |
||
51 | item "&Save", 9, 1 |
||
52 | item "Save &as", 10, 1 |
||
53 | menu "&Edit", 2 |
||
54 | item "&Copy", 11, 2 |
||
55 | item "P&aste", 12, 2 |
||
56 | menu "&view", 3 |
||
57 | item "&All", 13, 3 |
||
58 | menu "&Help", 4 |
||
59 | item "&About", 5, 4 |
||
60 | } |
||
61 | |||
62 | ;Modeless, Desktop |
||
63 | /dialog -md Example1 Example1 |
||
64 | </pre> |