Project

General

Profile

Dialog » History » Version 10

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