Difference between revisions of "Splitter"

From Lianjapedia
Jump to: navigation, search
Line 14: Line 14:
 
|valign="top"|RW
 
|valign="top"|RW
 
|valign="top"|Numeric
 
|valign="top"|Numeric
|valign="top"|Orientation: 0 = horizontal, >0 = vertical  
+
|valign="top"|Orientation: 0 = horizontal, >0 = vertical. Note: the orientation refers to the way the container is split.  Horizontal Orientation will produce side-by-side sub-containers; Vertical Orientation will produce sub-containers one on top of the other.
 
|-
 
|-
 
|}
 
|}

Revision as of 06:02, 31 July 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. Note: the orientation refers to the way the container is split. Horizontal Orientation will produce side-by-side sub-containers; Vertical Orientation will produce sub-containers one on top of the other.

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