Project

General

Profile

Window » History » Version 39

Mr. BS, 03/04/2017 03:08 AM

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