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