Difference between revisions of "Splitter"

From Lianjapedia
Jump to: navigation, search
Line 34: Line 34:
 
|valign="top"|existing as Object
 
|valign="top"|existing as Object
 
|valign="top"|Remove the specified object
 
|valign="top"|Remove the specified object
 +
|-
 +
|valign="top"|SetSizes
 +
|valign="top"|size1 as Numeric, size2 as Numeric [, ...]
 +
|valign="top"|Set the initial size of the contained controls/containers
 +
|-
 +
|valign="top"|SetStretchFactor
 +
|valign="top"|size1 as Numeric, size2 as Numeric [, ...]
 +
|valign="top"|Set the relative size of the contained controls/containers, e.g. setStretchFactor(1,3) would make the first container added take up 25% of the space and the second one 75%.
 
|-
 
|-
 
|}
 
|}

Revision as of 08:21, 26 March 2013

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
Orientation RW Numeric Orientation: 0 = horizontal, >0 = vertical

Methods

This class supports the Common Methods plus the following:

Method Args Description
AddObject existing as Object | newobject as Character, class as Character Add an existing object or a new object, in which case the object's class must also be specified
RemoveObject existing as Object Remove the specified object
SetSizes size1 as Numeric, size2 as Numeric [, ...] Set the initial size of the contained controls/containers
SetStretchFactor size1 as Numeric, size2 as Numeric [, ...] Set the relative size of the contained controls/containers, e.g. setStretchFactor(1,3) would make the first container added take up 25% of the space and the second one 75%.

Events

This class supports the Common Events plus the following:

Event Args Description