From WikiChip
mirc/picture windows
< mirc
Revision as of 18:34, 22 December 2013 by Ouims (talk | contribs)

Template:mIRC Guide Picture Windows in mIRC are a special type of custom windows that can be used a drawing canvas. mIRC provides a set of commands, identifiers, and events for manipulating them. Picture windows provide an alternative mean of creating a graphical user interface.

Creating a window

Picture windows can be created via the /window command in combination with the -p switch.

Note: -p only creates the canvas, the size used in /window will by default set the window's size, to sets the size of the canvas, you need to use the -f switch, which will automatically resize the size of the window for you.

Note 1: The only way to get a window canvas/size bigger than your actual maximum screen resolution is to open the window once using the switches +Lt and then call /window -f again with the actual width and height.

A simple example:

//window -dep @example -1 -1 500 400
will create a desktop picture window named @example with an editbox and a size of 500x400, the actual size of the canvas is not 500*400, it will be close, you can check its size with:
//echo -a $window(@example).bw $window(@example).bh