Project

General

Profile

Dialog » History » Version 5

Per Amundsen, 10/14/2015 08:49 AM

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