Difference between revisions of "Container"

From Lianjapedia
Jump to: navigation, search
m (Yvonne.milne moved page Visage Application Framework - Container to Container without leaving a redirect)
Line 1: Line 1:
 +
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 +
 
====Properties====
 
====Properties====
  
Line 11: Line 13:
 
|Picture
 
|Picture
 
|RW
 
|RW
|
+
|Character
|
+
|Filename of background image
 
|-
 
|-
 
|Layout
 
|Layout
 
|RW
 
|RW
|
+
|Numeric or Character
|
+
|Layout: 1 = horizontal, 2 = vertical, 3 = form
 
|-
 
|-
 
|Gradient
 
|Gradient
 
|RW
 
|RW
|
+
|Numeric
|
+
|Gradient type: 0 = none, 1 = vertical spread, 2 = left to right, 3 = right to left, 4 = vertical centered, 5 = iPad style|
 
|-
 
|-
|Gradientfromcolor
+
|GradientFromColor
 
|RW
 
|RW
|
+
|Numeric
|
+
|Gradient start colour
 
|-
 
|-
|Gradienttocolor
+
|GradientToColor
 
|RW
 
|RW
|
+
|Numeric
|
+
|Gradient end colour
 
|-
 
|-
|Controlcount
+
|ControlCount
 
|R
 
|R
|
+
|Numeric
|
+
|Number of controls in Container
 
|-
 
|-
 
|Margin
 
|Margin
 
|RW
 
|RW
|
+
|Numeric
|
+
|Margin size in pixels
 
|-
 
|-
|Margintop
+
|MarginTop
 
|RW
 
|RW
|
+
|Numeric
|
+
|Top margin in pixels
 
|-
 
|-
|Marginleft
+
|MarginLeft
 
|RW
 
|RW
|
+
|Numeric
|
+
|Left margin in pixels
 
|-
 
|-
|Marginright
+
|MarginRight
 
|RW
 
|RW
|
+
|Numeric
|
+
|Right margin in pixels
 
|-
 
|-
|Marginbottom
+
|MarginBottom
 
|RW
 
|RW
|
+
|Numeric
|
+
|Bottom margin in pixels
 
|-
 
|-
 
|Spacing
 
|Spacing
 
|RW
 
|RW
|
+
|Numeric
|
+
|Control spacing in pixels
 
|-
 
|-
 
|}
 
|}
Line 80: Line 82:
 
!width="50%"|Description
 
!width="50%"|Description
 
|-
 
|-
|Addobject
+
|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
+
|RemoveObject
|
+
|existing as Object
|
+
|Remove the specified object
 
|-
 
|-
|Addrow
+
|AddRow
|
+
|label as Character, existing as Object | newobject as Character, class as Character
 
|
 
|
 
|-
 
|-
 
|Controls
 
|Controls
|
+
|control as Numeric
|
+
|Return an object reference to the specified control within the container
 
|-
 
|-
 
|}
 
|}

Revision as of 10:24, 21 December 2012

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
Picture RW Character Filename of background image
Layout RW Numeric or Character Layout: 1 = horizontal, 2 = vertical, 3 = form
Gradient RW Numeric
GradientFromColor RW Numeric Gradient start colour
GradientToColor RW Numeric Gradient end colour
ControlCount R Numeric Number of controls in Container
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
Controls control as Numeric Return an object reference to the specified control within the container

Events

This class supports the Common events plus the following:

Event Args Description