Project

General

Profile

Window » History » Version 6

Per Amundsen, 08/09/2014 01:13 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*/window [-abBcCde[N]fg[N]hHij[N]k[N]l[N]mMn[N]oprRsSuvw[N]xz] [-tN,..,N] [+bdeflLmnstx] <@name> [x y [w h]] [/command] [popup.txt] [font [size]] [iconfile [N]]*
4
5
*Switches*
6
7
Option Switches
8
9
-a - Set as the active window.
10
-b - TODO
11
-B - Prevent window from using an internal border.
12
-c - Close window.
13
-C - Center window.
14
-d - Create desktop window instead of child.
15
-e[N] - Enable editbox; 0 = single, 1 = multi, 2 = auto, 3 = default.
16
-f - Makes the w h the required width and height of the text display area. (instead of the window size)
17 5 Per Amundsen
-g[N] - Sets/removes window button color, 0 = normal color, 1 = message color, 2 = highlight color, 3 = system color.
18 2 Per Amundsen
-h - Hide window.
19 1 Per Amundsen
-H - TODO
20
-i - TODO
21 5 Per Amundsen
-j[N] - Sets buffer size to N lines.
22
-k[N] - Hides the @ prefix in the window name, 0 = hide prefix, 1 = show prefix.
23 1 Per Amundsen
-l[N] - TODO
24
-m - Enable line marker in the window.
25
-M - TODO
26
-n[N] - Minimize window ([N] = TODO)
27
-o - Stop ontop. (used with -d)
28
-p - Creates a picture windows.
29 5 Per Amundsen
-r - Restore window.
30 1 Per Amundsen
-R - TODO
31
-s - TODO
32
-S - TODO
33 5 Per Amundsen
-u - Remove ontop setting of a desktop window.
34 1 Per Amundsen
-v - TODO
35
-w[N] - Show/hide window from treebar or switchbar; 0 = hide from both, 1 = show in switchbar, 2 = show in switchbar, 3 = show in both
36 2 Per Amundsen
-x - Maximize window
37 6 Per Amundsen
-z[N] - if N = 1, places window button at end of switchbar/Treebar, if N = 0, restores original place. (Default is 1)
38 1 Per Amundsen
39
Tab Switches
40
41
-tN,..,N - TODO
42
43
Appearance Switches
44
45
+b - Border.
46
+d - No border.
47
+e - 3d Edge.
48
+f - Dialog frame.
49
+l - Tool window.
50
+L - Tool window. (hide from taskbar)
51
+n - Minimize window.
52
+s - TODO
53
+t - Titlebar.
54
+x - Maximize window.
55
56
*Parameters*
57
58
<@name> - Window name.
59
x y [w h] - Left top [width height] - position and size of window. (A -1 value for any of the parameters means use default (or existing) value).
60
/command - Default command.
61
popup.txt - Popup filename, must be plane text file. TODO
62
font [size] - Font name [font size].
63
iconfile [N] - Sets a custom titlebar icon for the window [index]. (Iconindex TODO)
64
65
*Êxample*
66
67
<pre>
68
alias example1 {
69
  ;Create a desktop + picture window, Coordinates: (250,250), size 300x300.
70
  /window -dep @Example 250 250 300 300
71
72
  ;Color it color 3. (default green)
73
  /drawfill @Example 3 3 1 1 100 100
74
75
  ;Draw text "Hello There!".
76
  /drawtext @Example 1 Arial 30 50 100 Hello There!
77
}
78
</pre>