Project

General

Profile

$window » History » Version 2

Per Amundsen, 11/12/2014 01:33 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$window(N/@name)*
4
5
Returns properties for a window.
6
7
*Parameters*
8
9
N/@name - Name of the window or the N'th window.
10
11
*Properties*
12
13
.x - Horizontal position of the window relative to the mainform.
14
.y - Vertical position of the window relative to the mainform. 
15
.w - Window width.
16
.h - Window height. 
17
.dx - Horizontal position of the window relative to the desktop.
18
.dy - Vertical position of the window relative to the desktop.
19
.dw - Width of the text display area.
20
.dh - Height of the text display area. 
21
.bw - Width of the bitmap for a picture window.
22
.bh - Height of the bitmap for a picture window. 
23
.mdi - [[$true]] if the window is a MDI window/docked, else [[$false]]
24
.title - The text of the window Titlebar.
25
.state - minimized/maximized/hidden/normal.
26
.font - Name of the current font.
27
.fontsize - Size of the current font. 
28
.fontbold - [[$true]] if the font is bold, otherwise returns [[$false]].
29
.fontitalic - [[$true]] if the font is italic, otherwise returns [[$false]]. 
30
.fontcs - TODO (returns 0)
31
.logfile - Name of logfile if one is open for the window.
32
.stamp - [[$true]] if timestamp is on for this window, else [[$false]].
33
.icon - [[$true]] if icon is visible in Switchbar else [[$false]].
34
.ontop - [[$true]] if window is on top else [[$false]].
35
.type - Window type, channel/status/query/custom/chat/tool/panel.
36 2 Per Amundsen
.anysc - TODO (returns [[$false]])
37 1 Per Amundsen
.wid - Window id.
38
.cid - Connection id.
39
.hwnd - Window handle.
40
.sbtext - Switchbar button text for this window.
41
.sbcolor - Switchbar color event event/message/highlight for this window.
42
.sbstate - Switchbar button state (1 = visible, 2 = not visible) for this window.
43
.tbtext - Treebar text for this window.
44
.tbstate - Treebar state (1 = visible, 2 = not visible) for this window.
45
.lb - Nicklist state (2 = visible, 0 = not visible) for this window