Dialog » History » Version 18
Per Amundsen, 02/16/2023 12:10 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 | [[Dialog Items]] |
||
48 | |||
49 | 1 | Per Amundsen | *Example* |
50 | |||
51 | <pre> |
||
52 | 7 | Mr. BS | ; Create a dialog table. |
53 | 1 | Per Amundsen | Dialog Example1 { |
54 | title "This is Example 1" |
||
55 | size -1 -1 172 129 |
||
56 | option dbu |
||
57 | tab "Tab A", 14, 2 0 165 123 |
||
58 | tab "Tab B", 15 |
||
59 | tab "Tab C", 16 |
||
60 | edit "", 17, 8 16 154 104, tab 16 multi return autohs vsbar |
||
61 | menu "&File", 1 |
||
62 | item "&New", 6, 1 |
||
63 | item "&Open", 7, 1 |
||
64 | item break, 8, 1 |
||
65 | item "&Save", 9, 1 |
||
66 | item "Save &as", 10, 1 |
||
67 | menu "&Edit", 2 |
||
68 | item "&Copy", 11, 2 |
||
69 | item "P&aste", 12, 2 |
||
70 | menu "&view", 3 |
||
71 | item "&All", 13, 3 |
||
72 | menu "&Help", 4 |
||
73 | item "&About", 5, 4 |
||
74 | } |
||
75 | |||
76 | 3 | Per Amundsen | ; Create and show the dialog as modeless and on the desktop. |
77 | 1 | Per Amundsen | /dialog -md Example1 Example1 |
78 | </pre> |