Project

General

Profile

Window » History » Revision 32

Revision 31 (Per Amundsen, 02/26/2017 07:02 PM) → Revision 32/55 (Mr. BS, 02/28/2017 07:20 PM)

_Added in 1.9.0_ 

 */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]]* 

 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. 

 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. 

 *Option Switches* 

 |*Switch*|*Description*| 
 |-a | -a - Set as the active window.| window. 
 |-b | TODO| -b - TODO 
 |-B | -B - Prevent window from using an internal border.| border. 
 |-c | -c - Close window.| window. 
 |-C | -C - Center window.| window. 
 |-d | -d - Create desktop window instead of child.| child. 
 |-e[N] | -e[N] - Enable Editbox; 0 = single, 1 = multi, 2 = auto, 3 = default.| default. 
 |-f | -f - Makes the w h the required width and height of the text display area. (instead of the window size)| size) 
 |-g[N] | -g[N] - Sets/removes window button color, 0 = normal color, 1 = message color, 2 = highlight color, 3 = system color (3 is AdiIRC only).| only). 
 |-h | -h - Hide window.| window. 
 |-H | -H - Enables auto-hide for a side-listbox.| side-listbox. 
 |-i | -i - Dynamically associate with whatever happens to be the active connection.| connection. 
 |-j[N] | -j[N] - Sets buffer size to N lines.| lines. 
 |-k[N] | -k[N] - Hides the @ prefix in the window name, 0 = hide prefix, 1 = show prefix.| prefix. 
 |-l[N] | -l[N] - Add listbox, if N is specified then a side-listbox N characters wide is created.| created. 
 |-m | -m - Enable line marker in the window.| window. 
 |-M | TODO| -M - TODO 
 |-n[N] | -n[N] - Minimize window ([N] = TODO)| TODO) 
 |-o | -o - Sets the windows as the top most window. (used with -d)| -d) 
 |-p | -p - Creates a picture windows.| windows. 
 |-q[N] | -q[N] - If N is 0 hides the nick column, if N is 1 shows the nick column. _AdiIRC only_| only_ 
 |-Q[N] | -Q[N] - If N is 0 docks the window, if N is 1 undocks the window. _AdiIRC only_| only_ 
 |-r | -r - Restore window.| window. 
 |-R | TODO| -R - TODO 
 |-s | -s - Sort the main window, whether text or listbox. (only listbox for now)| now) 
 |-S | -S - Sort the side-listbox.| side-listbox. 
 |-t | -t - Indicates the [rgb] parameter is defined, sets the forms transparency key to [rgb]. _AdiIRC only_| only_ 
 |-T[N] | -T[N] - Enable Topicbox; 0 = Show, 1 = Show Sticky, 2 = Off, 3 = default. _AdiIRC only_| only_ 
 |-u | -u - Remove ontop setting of a desktop window.| window. 
 |-v | -v - Close window when associated status window is closed.| closed. 
 |-w[N] | -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| both 
 |-x | -x - Maximize window| window 
 |-z[N] | -z[N] - if N = 1, places window button at end of switchbar/Treebar, if N = 0, restores original place. (Default is 1)| 1) 
 |-Z | -Z - Reset the window icon to default.| default. 

 *Tab Switches* 

 |*Switch*|*Description*| 
 |-tN,..,N | TODO| -tN,..,N - TODO 

 *Appearance Switches* 

 _These causes graphical glitches for MDI windows because .net MDI does not like windows without proper borders._ 

 |*Switch*|*Description*| +b - Border. 
 |+b | Border.| 
 |+d | +d - No border.| border. 
 |+e | +e - 3d Edge.| Edge. 
 |+f | +f - Dialog frame.| frame. 
 |+l | +l - Tool window.| window. 
 |+L | +L - Tool window. (hide from taskbar)| taskbar) 
 |+n | +n - Minimize box.| box. 
 |+s | Sizeable.| +s - Sizeable. 
 |+t | Titlebar.| +t - Titlebar. 
 |+x | +x - Maximize box.| box. 

 *Parameters* 

 |*Parameter*|*Description*| 
 |<@name> | <@name> - Window name.| name. 
 |[rgb] | {rgb] - The [[$rgb]] value used with the -t parameter.| parameter. 
 |x 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).| value). 
 |/command | /command - Default command.| command. 
 |popup.txt | popup.txt - Popup filename, must be plane text file. TODO| TODO 
 |font font [size] | - Font name [font size].| size]. 
 |iconfile iconfile [N] | - Sets a custom titlebar icon for the window. (N = TODO)| TODO) 

 *Example* 

 <pre> 
 alias example1 { 
   ; Create a desktop + picture window, Coordinates: (250,250), size 300x300. 
   /window -dep @Example 250 250 300 300 

   ; Color it with the control code color 3. (default is green) 
   /drawfill @Example 3 3 1 1 100 100 

   ; Draw text "Hello world!". 
   /drawtext @Example 1 Arial 30 50 100 Hello World! 
 
   ; Close the window. 
   /window -c @Example 
 } 
 </pre>