Project

General

Profile

Window » History » Version 32

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