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