Difference between revisions of "Control"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 70: | Line 70: | ||
====Methods==== | ====Methods==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Methods|Common Methods]] plus the following: |
{| class="wikitable" | {| class="wikitable" |
Revision as of 13:12, 8 January 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 |
---|---|---|---|
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 |
Picture | RW | Character | Filename of background image |
Layout | RW | Numeric or Character | Layout: 1 = horizontal, 2 = vertical, 3 = form |
Margin | RW | Numeric | Margin size in pixels |
MarginTop | RW | Numeric | Top margin in pixels |
MarginLeft | RW | Numeric | Left margin in pixels |
MarginRight | RW | Numeric | Right margin in pixels |
MarginBottom | RW | Numeric | Bottom margin in pixels |
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 |
RemoveObject | existing as Object | Remove the specified object |
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 |
Events
This class supports the Common events plus the following:
Event | Args | Description |
---|