win.labelWindow - WIN

Class labelWindow
Inherits from window.

The labelWindow class provides a string label with a height of 1 and width of the length of the label. Its colors are initialized from the theme but may be customized after creation. A label control fires no events.

To create a labelWindow use it's new method:
local lbl = win.labelWindow:new (parent, id, x, y, label)


Properties

none       

Methods

See also API Reference, WIN.

win.labelWindow:constructor

label labelWindow:constructor (parent, id, x, y, label)

Constructs and returns the instantiated label window.

Parameters
parent window Parent window, typically a frame.
id number Numeric id value for label window.
x number Parent relative x position.
y number Parent relative y position.
label string Label text.

Returns
label labelWindow The instantiated label window.

Remarks


top


win.labelWindow:draw

labelWindow:draw (gdi, bounds)

Draws the label control.

Parameters
gdi GDI GDI object to use for drawing.
bounds rect Invalidated area of the window.

Returns
none


Remarks
See window:draw.


top


See also API Reference, WIN.