wxRuby Documentation Home

Wx::StaticLine

A static line is just a line which may be used in a dialog to separate the groups of controls. The line may be only vertical or horizontal.

Derived from

Control

Window

EvtHandler

Object

Window styles

LI_HORIZONTAL Creates a horizontal line.
LI_VERTICAL Creates a vertical line.

See also

StaticBox

Methods

StaticLine.new

StaticLine.new(Window parent,  Integer id = ID_ANY, 
               Point pos = DEFAULT_POSITION, 
               Size size = DEFAULT_SIZE, 
               Integer style = LI_HORIZONTAL, 
               String name = "staticLine")

Constructor, creating and showing a static line.

Parameters

See also

StaticLine#create

StaticLine#create

Boolean create(Window parent,  Integer id = ID_ANY, 
               Point pos = DEFAULT_POSITION, 
               Size size = DEFAULT_SIZE, 
               Integer style = 0, 
               String name = "staticLine")

Creates the static line for two-step construction. See StaticLine.new for further details.

StaticLine#is_vertical

Boolean is_vertical()

Returns true if the line is vertical, false if horizontal.

StaticLine#get_default_size

Integer get_default_size()

This static function returns the size which will be given to the smaller dimension of the static line, i.e. its height for a horizontal line or its width for a vertical one.

[This page automatically generated from the Textile source at Thu May 01 00:50:44 +0100 2008]