Project

General

Profile

Window » History » Version 35

Mr. BS, 02/28/2017 07:28 PM

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