Difference between revisions of "Control"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (Yvonne.milne moved page Visage Application Framework - Control to Control without leaving a redirect) |
Helen.george (Talk | contribs) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | ||
+ | |||
====Properties==== | ====Properties==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Properties|Common Properties]] plus the following: |
− | {| class="wikitable" | + | {| class="wikitable" width="100%" |
!width="20%"|Property | !width="20%"|Property | ||
!Access (R/RW) | !Access (R/RW) | ||
Line 9: | Line 11: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | |Gradient | + | |valign="top"|Gradient |
− | |RW | + | |valign="top"|RW |
− | | | + | |valign="top"|Numeric |
− | | | + | |valign="top"|Gradient type: 0 = none, 1 = vertical spread, 2 = left to right, 3 = right to left, 4 = vertical centered, 5 = iPad style |
|- | |- | ||
− | | | + | |GradientFromColor |
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Gradient start colour |
|- | |- | ||
− | | | + | |GradientToColor |
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Gradient end colour |
|- | |- | ||
|Picture | |Picture | ||
|RW | |RW | ||
− | | | + | |Character |
− | | | + | |Filename of background image |
|- | |- | ||
− | |Layout | + | |valign="top"|Layout |
− | |RW | + | |valign="top"|RW |
− | | | + | |valign="top"|Numeric or Character |
− | | | + | |valign="top"|Layout: 1 = horizontal, 2 = vertical, 3 = form |
|- | |- | ||
|Margin | |Margin | ||
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Margin size in pixels |
|- | |- | ||
− | | | + | |MarginTop |
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Top margin in pixels |
|- | |- | ||
− | | | + | |MarginLeft |
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Left margin in pixels |
|- | |- | ||
− | | | + | |MarginRight |
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Right margin in pixels |
|- | |- | ||
− | | | + | |MarginBottom |
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Bottom margin in pixels |
|- | |- | ||
|Spacing | |Spacing | ||
|RW | |RW | ||
− | | | + | |Numeric |
− | | | + | |Control spacing in pixels |
|- | |- | ||
|} | |} | ||
Line 68: | Line 70: | ||
====Methods==== | ====Methods==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Methods|Common Methods]] plus the following: |
− | {| class="wikitable" | + | {| class="wikitable" width="100%" |
!width="20%"|Method | !width="20%"|Method | ||
!Args | !Args | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | | | + | |valign="top"|AddObject |
− | | | + | |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"|AddRow |
− | | | + | |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 |
|- | |- | ||
− | | | + | |RemoveObject |
− | | | + | |existing as Object |
− | | | + | |Remove the specified object |
|- | |- | ||
|} | |} | ||
Line 91: | Line 93: | ||
====Events==== | ====Events==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Events|Common Events]] plus the following: |
− | {| class="wikitable" | + | {| class="wikitable" width="100%" |
!width="20%"|Event | !width="20%"|Event | ||
!Args | !Args |
Latest revision as of 06:51, 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 |
---|---|---|---|
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 |
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 |
RemoveObject | existing as Object | Remove the specified object |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|