Difference between revisions of "Container"

From Lianjapedia
Jump to: navigation, search
Line 11: Line 11:
 
!width="50%"|Description
 
!width="50%"|Description
 
|-
 
|-
|Picture
+
|ControlCount
|RW
+
|R
|Character
+
|Numeric
|Filename of background image
+
|Number of controls in Container
|-
+
|Layout
+
|RW
+
|Numeric or Character
+
|Layout: 1 = horizontal, 2 = vertical, 3 = form
+
 
|-
 
|-
 
|valign="top"|Gradient
 
|valign="top"|Gradient
Line 36: Line 31:
 
|Gradient end colour
 
|Gradient end colour
 
|-
 
|-
|ControlCount
+
|Layout
|R
+
|RW
|Numeric
+
|Numeric or Character
|Number of controls in Container
+
|Layout: 1 = horizontal, 2 = vertical, 3 = form
 
|-
 
|-
 
|Margin
 
|Margin
Line 46: Line 41:
 
|Margin size in pixels
 
|Margin size in pixels
 
|-
 
|-
|MarginTop
+
|MarginBottom
 
|RW
 
|RW
 
|Numeric
 
|Numeric
|Top margin in pixels
+
|Bottom margin in pixels
 
|-
 
|-
 
|MarginLeft
 
|MarginLeft
Line 61: Line 56:
 
|Right margin in pixels
 
|Right margin in pixels
 
|-
 
|-
|MarginBottom
+
|MarginTop
 
|RW
 
|RW
 
|Numeric
 
|Numeric
|Bottom margin in pixels
+
|Top margin in pixels
 +
|-
 +
|Picture
 +
|RW
 +
|Character
 +
|Filename of background image
 
|-
 
|-
 
|Spacing
 
|Spacing
Line 85: Line 85:
 
|valign="top"|existing as Object | newobject as Character, class as Character
 
|valign="top"|existing as Object | newobject as Character, class as Character
 
|valign="top"|Add an existing object or a new object, in which case the object's class must also be specified
 
|valign="top"|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
 
 
|-
 
|-
 
|valign="top"|AddRow
 
|valign="top"|AddRow
Line 97: Line 93:
 
|control as Numeric
 
|control as Numeric
 
|Return an object reference to the specified control within the container
 
|Return an object reference to the specified control within the container
 +
|-
 +
|RemoveObject
 +
|existing as Object
 +
|Remove the specified object
 
|-
 
|-
 
|}
 
|}

Revision as of 06:49, 30 April 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
ControlCount R Numeric Number of controls in Container
Gradient RW Numeric Gradient type: 0 = none, 1 = vertical spread, 2 = left to right, 3 = right to left, 4 = vertical centered, 5 = iPad style
GradientFromColor RW Numeric Gradient start colour
GradientToColor RW Numeric Gradient end colour
Layout RW Numeric or Character Layout: 1 = horizontal, 2 = vertical, 3 = form
Margin RW Numeric Margin size in pixels
MarginBottom RW Numeric Bottom margin in pixels
MarginLeft RW Numeric Left margin in pixels
MarginRight RW Numeric Right margin in pixels
MarginTop RW Numeric Top margin in pixels
Picture RW Character Filename of background image
Spacing RW Numeric Control spacing in pixels

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
AddRow label as Character, 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. The label and the object are added as a new row to Containers with 'form' layout only
Controls control as Numeric Return an object reference to the specified control within the container
RemoveObject existing as Object Remove the specified object

Events

This class supports the Common Events plus the following:

Event Args Description