Project

General

Profile

Dialog » History » Version 4

Per Amundsen, 08/14/2015 01:55 PM

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