Difference between revisions of "Container"
From Lianjapedia
Helen.george (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 10: | Line 10: | ||
!Value | !Value | ||
!width="50%"|Description | !width="50%"|Description | ||
+ | |- | ||
+ | |Border | ||
+ | |RW | ||
+ | |Boolean | ||
+ | |Border is displayed | ||
+ | |- | ||
+ | |BorderColor | ||
+ | |RW | ||
+ | |Numeric | ||
+ | |Border color as a decimal, e.g. 16711935 or rgb(255,0,255) | ||
+ | |- | ||
+ | |BorderWidth | ||
+ | |RW | ||
+ | |Numeric | ||
+ | |Border width in pixels | ||
|- | |- | ||
|ControlCount | |ControlCount | ||
Line 24: | Line 39: | ||
|RW | |RW | ||
|Numeric | |Numeric | ||
− | |Gradient start | + | |Gradient start color |
|- | |- | ||
|GradientToColor | |GradientToColor | ||
|RW | |RW | ||
|Numeric | |Numeric | ||
− | |Gradient end | + | |Gradient end color |
|- | |- | ||
|Layout | |Layout | ||
Line 89: | Line 104: | ||
|valign="top"|label as Character, existing as Object | newobject as Character, class as Character | |valign="top"|label as Character, 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. The label and the object are added as a new row to Containers with 'form' layout only | |valign="top"|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 | ||
+ | |- | ||
+ | |valign="top"|AddSpacing | ||
+ | |valign="top"|size as Numeric | ||
+ | |valign="top"|Adds a spacer of the specified size: height where the container layout is vertical (2), width where the container layout is horizontal (1) | ||
+ | |- | ||
+ | |valign="top"|AddStretch | ||
+ | |valign="top"|None | ||
+ | |valign="top"|Add a spacer that expands to fill the available space | ||
|- | |- | ||
|Controls | |Controls | ||
Line 97: | Line 120: | ||
|existing as Object | |existing as Object | ||
|Remove the specified object | |Remove the specified object | ||
+ | |- | ||
+ | |valign="top"|SetAll | ||
+ | |valign="top"|property as Character, value as Expression[, class as Character] | ||
+ | |valign="top"|Currently ignored. | ||
|- | |- | ||
|} | |} |
Revision as of 05:04, 26 August 2016
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 |
---|---|---|---|
Border | RW | Boolean | Border is displayed |
BorderColor | RW | Numeric | Border color as a decimal, e.g. 16711935 or rgb(255,0,255) |
BorderWidth | RW | Numeric | Border width in pixels |
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 color |
GradientToColor | RW | Numeric | Gradient end color |
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 |
AddSpacing | size as Numeric | Adds a spacer of the specified size: height where the container layout is vertical (2), width where the container layout is horizontal (1) |
AddStretch | None | Add a spacer that expands to fill the available space |
Controls | control as Numeric | Return an object reference to the specified control within the container |
RemoveObject | existing as Object | Remove the specified object |
SetAll | property as Character, value as Expression[, class as Character] | Currently ignored. |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|