Window » History » Version 50
Per Amundsen, 12/26/2018 10:46 AM
1 | 43 | Mr. BS | _Added in 1.9.0_ |
---|---|---|---|
2 | 41 | Mr. BS | |
3 | 50 | Per Amundsen | */window [-abBcCde[N]fg[N]hHij[N]k[N]l[N]mMn[N]opq[N]rRsST[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 | 49 | Per Amundsen | Creates or manipulates a custom window with a [[Topicbox Control|Topicbox]]/[[Editbox Control|Editbox]]/Text area/Listbox depending on the parameters used, see [[Scripting Custom Windows|Custom Windows]] for more information. |
6 | 31 | Per Amundsen | |
7 | 1 | Per Amundsen | 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 | 31 | Per Amundsen | |
9 | 44 | Mr. BS | *Option Switches* |
10 | 1 | Per Amundsen | |
11 | 37 | Mr. BS | table(ktable). |
12 | 46 | Mr. BS | |_<.Switch|_<.Description| |
13 | 32 | Mr. BS | |-a | Set as the active window.| |
14 | |-b | TODO| |
||
15 | |-B | Prevent window from using an internal border.| |
||
16 | |-c | Close window.| |
||
17 | |-C | Center window.| |
||
18 | |-d | Create desktop window instead of child.| |
||
19 | 48 | Per Amundsen | |-e[N] | Enable [[Editbox Control|Editbox]]; 0 = single, 1 = multi, 2 = auto, 3 = default.| |
20 | 32 | Mr. BS | |-f | Makes the w h the required width and height of the text display area. (instead of the window size)| |
21 | 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_).| |
22 | 32 | Mr. BS | |-h | Hide window.| |
23 | |-H | Enables auto-hide for a side-listbox.| |
||
24 | |-i | Dynamically associate with whatever happens to be the active connection.| |
||
25 | |-j[N] | Sets buffer size to N lines.| |
||
26 | |-k[N] | Hides the @ prefix in the window name, 0 = hide prefix, 1 = show prefix.| |
||
27 | |-l[N] | Add listbox, if N is specified then a side-listbox N characters wide is created.| |
||
28 | |-m | Enable line marker in the window.| |
||
29 | |-M | TODO| |
||
30 | |-n[N] | Minimize window ([N] = TODO)| |
||
31 | |-o | Sets the windows as the top most window. (used with -d)| |
||
32 | |-p | Creates a picture windows.| |
||
33 | |-q[N] | If N is 0 hides the nick column, if N is 1 shows the nick column. _AdiIRC only_| |
||
34 | |-Q[N] | If N is 0 docks the window, if N is 1 undocks the window. _AdiIRC only_| |
||
35 | |-r | Restore window.| |
||
36 | |-R | TODO| |
||
37 | |-s | Sort the main window, whether text or listbox. (only listbox for now)| |
||
38 | |-S | Sort the side-listbox.| |
||
39 | 50 | Per Amundsen | |-T | Indicates the [rgb] parameter is defined, sets the forms transparency key to [rgb]. _AdiIRC only_| |
40 | 32 | Mr. BS | |-T[N] | Enable Topicbox; 0 = Show, 1 = Show Sticky, 2 = Off, 3 = default. _AdiIRC only_| |
41 | |-u | Remove ontop setting of a desktop window.| |
||
42 | |-v | Close window when associated status window is closed.| |
||
43 | |-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| |
||
44 | 1 | Per Amundsen | |-x | Maximize window| |
45 | 32 | Mr. BS | |-z[N] | if N = 1, places window button at end of switchbar/Treebar, if N = 0, restores original place. (Default is 1)| |
46 | |-Z | Reset the window icon to default.| |
||
47 | 2 | Per Amundsen | |
48 | 43 | Mr. BS | *Tab Switches* |
49 | 1 | Per Amundsen | |
50 | table(ktable). |
||
51 | 46 | Mr. BS | |_<.Switch|_<.Description| |
52 | 32 | Mr. BS | |-tN,..,N | TODO| |
53 | 1 | Per Amundsen | |
54 | 43 | Mr. BS | *Appearance Switches* |
55 | 1 | Per Amundsen | |
56 | 18 | Per Amundsen | _These causes graphical glitches for MDI windows because .net MDI does not like windows without proper borders._ |
57 | 1 | Per Amundsen | |
58 | 37 | Mr. BS | table(ktable). |
59 | 46 | Mr. BS | |_<.Switch|_<.Description| |
60 | 32 | Mr. BS | |+b | Border.| |
61 | |+d | No border.| |
||
62 | |+e | 3d Edge.| |
||
63 | |+f | Dialog frame.| |
||
64 | |+l | Tool window.| |
||
65 | |+L | Tool window. (hide from taskbar)| |
||
66 | |+n | Minimize box.| |
||
67 | |+s | Sizeable.| |
||
68 | |+t | Titlebar.| |
||
69 | |+x | Maximize box.| |
||
70 | 19 | Per Amundsen | |
71 | 1 | Per Amundsen | *Parameters* |
72 | |||
73 | 37 | Mr. BS | table(ktable). |
74 | 46 | Mr. BS | |_<.Parameter|_<.Description| |
75 | 32 | Mr. BS | |<@name> | Window name.| |
76 | |[rgb] | The [[$rgb]] value used with the -t parameter.| |
||
77 | 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).| |
78 | 32 | Mr. BS | |/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 | 43 | 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> |