Difference between revisions of "Container"
From Lianjapedia
Helen.george (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 11: | Line 11: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | | | + | |ControlCount |
− | | | + | |R |
− | | | + | |Numeric |
− | | | + | |Number of controls in Container |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
|valign="top"|Gradient | |valign="top"|Gradient | ||
Line 36: | Line 31: | ||
|Gradient end colour | |Gradient end colour | ||
|- | |- | ||
− | | | + | |Layout |
− | | | + | |RW |
− | |Numeric | + | |Numeric or Character |
− | | | + | |Layout: 1 = horizontal, 2 = vertical, 3 = form |
|- | |- | ||
|Margin | |Margin | ||
Line 46: | Line 41: | ||
|Margin size in pixels | |Margin size in pixels | ||
|- | |- | ||
− | | | + | |MarginBottom |
|RW | |RW | ||
|Numeric | |Numeric | ||
− | | | + | |Bottom margin in pixels |
|- | |- | ||
|MarginLeft | |MarginLeft | ||
Line 61: | Line 56: | ||
|Right margin in pixels | |Right margin in pixels | ||
|- | |- | ||
− | | | + | |MarginTop |
|RW | |RW | ||
|Numeric | |Numeric | ||
− | | | + | |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 | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|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 |
---|