Project

General

Profile

Dialog » History » Version 9

Per Amundsen, 04/23/2016 09:13 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 9 Per Amundsen
*/dialog -abcdefghijklmnoprstvx <name> [newname|table] [x y w h] [text]*
4 1 Per Amundsen
5
Allows you to create a modeless dialog with the -m switch.
6
7 4 Per Amundsen
_See also [[$dialog]]._
8
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
-s - Set dialog size/position.
29
-t - Set dialog title to 'text'.
30
-v - Makes the dialog the active window.
31
-x - Close a dialog without triggering any events.
32
33
*Parameters*
34
35
<name> - Name of the dialog to creae.
36
[newname] - Newname used with -g
37
[table] - Name of the dialog table to use.
38
[x y w h] - X/Y Position on the desktop and the Height/Width of the dialog.
39
[text] - Dialog title text.
40
41
*Example*
42
43
<pre>
44 7 Mr. BS
; Create a dialog table.
45 1 Per Amundsen
Dialog Example1 {
46
  title "This is Example 1"
47
  size -1 -1 172 129
48
  option dbu
49
  tab "Tab A", 14, 2 0 165 123
50
  tab "Tab B", 15
51
  tab "Tab C", 16
52
  edit "", 17, 8 16 154 104, tab 16 multi return autohs vsbar
53
  menu "&File", 1
54
  item "&New", 6, 1
55
  item "&Open", 7, 1
56
  item break, 8, 1
57
  item "&Save", 9, 1
58
  item "Save &as", 10, 1
59
  menu "&Edit", 2
60
  item "&Copy", 11, 2
61
  item "P&aste", 12, 2
62
  menu "&view", 3
63
  item "&All", 13, 3
64
  menu "&Help", 4
65
  item "&About", 5, 4
66
}
67
68 3 Per Amundsen
; Create and show the dialog as modeless and on the desktop.
69 1 Per Amundsen
/dialog -md Example1 Example1
70
</pre>