From WikiChip
Difference between revisions of "mirc/picture windows"
< mirc

(added create window section)
Line 3: Line 3:
  
 
== Creating a window ==
 
== Creating a window ==
Picture windows can be created via the [[/window command - mIRC|/window]] command in combination with the -p switch. For example,
+
Picture windows can be created via the [[/window command - mIRC|/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:
 +
 
 
<source lang="mIRC">
 
<source lang="mIRC">
 
//window -dep @example -1 -1 500 400
 
//window -dep @example -1 -1 500 400
 
</source>
 
</source>
  
will create <code>@example</code> desktop picture window with an editbox of size 500x400.
+
will create a desktop picture window named <code>@example</code> 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: <source lang="mIRC">
 +
//echo -a $window(@example).bw $window(@example).bh
 +
</source>

Revision as of 18:34, 22 December 2013

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