Project

General

Profile

Dialog » History » Version 7

Mr. BS, 12/13/2015 11:03 PM

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