Project

General

Profile

Window » History » Version 31

Per Amundsen, 02/26/2017 07:02 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 23 Per Amundsen
*/window [-abBcCde[N]fg[N]hHij[N]k[N]l[N]mMn[N]opq[N]rRsStT[N]uvw[N]xz] [-tN,..,N] [+bdeflLmnstx] <@name> [rgb|[x y [w h]]] [/command] [popup.txt] [font [size]] [iconfile [N]]*
4 1 Per Amundsen
5 31 Per Amundsen
Creates or manipulates a custom window with a Topicbox/Editbox/Text area/Listbox depending on the parameters used, see [[Scripting Custom Windows|Custom Windows]] for more information.
6
7
If -p is specified, a picture window is created which can be custom drawn using various commands/identifiers, see [[Scripting Picture Windows|Picture Windows]] for more information.
8
9 18 Per Amundsen
*Option Switches*
10 1 Per Amundsen
11
-a - Set as the active window.
12
-b - TODO
13
-B - Prevent window from using an internal border.
14
-c - Close window.
15
-C - Center window.
16
-d - Create desktop window instead of child.
17 23 Per Amundsen
-e[N] - Enable Editbox; 0 = single, 1 = multi, 2 = auto, 3 = default.
18 1 Per Amundsen
-f - Makes the w h the required width and height of the text display area. (instead of the window size)
19 24 Per Amundsen
-g[N] - Sets/removes window button color, 0 = normal color, 1 = message color, 2 = highlight color, 3 = system color (3 is AdiIRC only).
20 2 Per Amundsen
-h - Hide window.
21 12 Per Amundsen
-H - Enables auto-hide for a side-listbox.
22 10 Per Amundsen
-i - Dynamically associate with whatever happens to be the active connection.
23 5 Per Amundsen
-j[N] - Sets buffer size to N lines.
24
-k[N] - Hides the @ prefix in the window name, 0 = hide prefix, 1 = show prefix.
25 11 Per Amundsen
-l[N] - Add listbox, if N is specified then a side-listbox N characters wide is created.
26 1 Per Amundsen
-m - Enable line marker in the window.
27
-M - TODO
28
-n[N] - Minimize window ([N] = TODO)
29 29 Per Amundsen
-o - Sets the windows as the top most window. (used with -d)
30 1 Per Amundsen
-p - Creates a picture windows.
31 13 Per Amundsen
-q[N] - If N is 0 hides the nick column, if N is 1 shows the nick column. _AdiIRC only_
32 14 Per Amundsen
-Q[N] - If N is 0 docks the window, if N is 1 undocks the window. _AdiIRC only_
33 5 Per Amundsen
-r - Restore window.
34 1 Per Amundsen
-R - TODO
35 11 Per Amundsen
-s - Sort the main window, whether text or listbox. (only listbox for now)
36 1 Per Amundsen
-S - Sort the side-listbox.
37 27 Mr. BS
-t - Indicates the [rgb] parameter is defined, sets the forms transparency key to [rgb]. _AdiIRC only_
38 28 Mr. BS
-T[N] - Enable Topicbox; 0 = Show, 1 = Show Sticky, 2 = Off, 3 = default. _AdiIRC only_
39 5 Per Amundsen
-u - Remove ontop setting of a desktop window.
40 9 Per Amundsen
-v - Close window when associated status window is closed.
41 26 Mr. BS
-w[N] - Show/hide window from treebar or switchbar; 0 = hide from both, 1 = show in switchbar, 2 = show in treebar, 3 = show in both
42 2 Per Amundsen
-x - Maximize window
43 1 Per Amundsen
-z[N] - if N = 1, places window button at end of switchbar/Treebar, if N = 0, restores original place. (Default is 1)
44 6 Per Amundsen
-Z - Reset the window icon to default.
45 1 Per Amundsen
46 18 Per Amundsen
*Tab Switches*
47 1 Per Amundsen
48
-tN,..,N - TODO
49
50 18 Per Amundsen
*Appearance Switches*
51 1 Per Amundsen
52 21 Per Amundsen
_These causes graphical glitches for MDI windows because .net MDI does not like windows without proper borders._
53 17 Per Amundsen
54 1 Per Amundsen
+b - Border.
55
+d - No border.
56
+e - 3d Edge.
57
+f - Dialog frame.
58
+l - Tool window.
59
+L - Tool window. (hide from taskbar)
60 19 Per Amundsen
+n - Minimize box.
61
+s - Sizeable.
62 1 Per Amundsen
+t - Titlebar.
63 19 Per Amundsen
+x - Maximize box.
64 1 Per Amundsen
65
*Parameters*
66
67
<@name> - Window name.
68 22 Per Amundsen
{rgb] - The [[$rgb]] value used with the -t parameter.
69 1 Per Amundsen
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).
70
/command - Default command.
71
popup.txt - Popup filename, must be plane text file. TODO
72
font [size] - Font name [font size].
73 20 Per Amundsen
iconfile [N] - Sets a custom titlebar icon for the window. (N = TODO)
74 1 Per Amundsen
75 16 Mr. BS
*Example*
76 1 Per Amundsen
77
<pre>
78
alias example1 {
79 30 Per Amundsen
  ; Create a desktop + picture window, Coordinates: (250,250), size 300x300.
80 1 Per Amundsen
  /window -dep @Example 250 250 300 300
81
82 30 Per Amundsen
  ; Color it with the control code color 3. (default is green)
83 1 Per Amundsen
  /drawfill @Example 3 3 1 1 100 100
84
85 30 Per Amundsen
  ; Draw text "Hello world!".
86
  /drawtext @Example 1 Arial 30 50 100 Hello World!
87
 
88
  ; Close the window.
89
  /window -c @Example
90 1 Per Amundsen
}
91
</pre>