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