User Tools

Site Tools


built_in:layouts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
built_in:layouts [2015/04/06 08:29]
stevegarman [Table] correct GetVisibility
built_in:layouts [2018/12/08 02:02] (current)
Line 10: Line 10:
  
 Create layouts using the **CreateLayout** function of the [[built_in:app|app]] object: Create layouts using the **CreateLayout** function of the [[built_in:app|app]] object:
-<code> lay.AddChildobject );</code>+<code> lay = app.CreateLayouttype, options );</code>
  
 Add child objects to a layout using the **AddChild** function of the layout object. Add child objects to a layout using the **AddChild** function of the layout object.
-<code> lay = app.CreateLayouttype, options );</code>+<code> lay.AddChildobject );</code>
  
 The alignment of child objects within a layout can be set by adding the options **"Left"**, **"Right"**, **"Bottom"** and **"VCenter"**, by default objects will be aligned **"Top,Center"**.\\  The alignment of child objects within a layout can be set by adding the options **"Left"**, **"Right"**, **"Bottom"** and **"VCenter"**, by default objects will be aligned **"Top,Center"**.\\ 
Line 174: Line 174:
 ^ Method                                                         ^ Description                                                                                                                                                                                                                                        ^ ^ Method                                                         ^ Description                                                                                                                                                                                                                                        ^
 | Layout.AddChild( child,order )                                 | child is the object to add to the Layout. Order is the rang option to make an object behind an other Object.                                                                                                                                       | | Layout.AddChild( child,order )                                 | child is the object to add to the Layout. Order is the rang option to make an object behind an other Object.                                                                                                                                       |
-| Layout.Animate( type,callback )                                | known types: <code>SlideFromLeft ScaleFromLeft SlideToLeft ScaleToLeft SlideFromRight ScaleFromRight SlideToRight ScaleToRight SlideFromTop ScaleFromTop SlideToTop ScaleToTop SlideFromBottom ScaleFromBottom SlideToBottom ScaleToBottom</code>  |+| Layout.Animate( type, callback, time )                                | known types: SlideFromLeft,SlideFromRight,SlideFromTop,SlideFromBottom,SlideToLeft,SlideToRight,SlideToTop,SlideToBottom,ScaleFromLeft, ScaleFromRight,ScaleFromTop, ScaleFromBottom, ScaleToLeft, ScaleToRight, ScaleToTop,ScaleToBottom,FadeIn,FadeOut,Flip|
 | Layout.ChildToFront( child )                                                                                                                                                                                                                                                                                      | | Layout.ChildToFront( child )                                                                                                                                                                                                                                                                                      |
 | Layout.Destroy()                                               | This function Destroys a Layout forever.                                                                                                                                                                                                           | | Layout.Destroy()                                               | This function Destroys a Layout forever.                                                                                                                                                                                                           |
Line 183: Line 183:
 | Layout.GetHeight()                                             | This returns the Height of an Layout.                                                                                                                                                                                                              | | Layout.GetHeight()                                             | This returns the Height of an Layout.                                                                                                                                                                                                              |
 | Layout.GetPosition()                                           | This returns the Position of an Layout.                                                                                                                                                                                                            | | Layout.GetPosition()                                           | This returns the Position of an Layout.                                                                                                                                                                                                            |
-| Layout.GetType()                                               | This returns the Type of an Layout. For Example: "Absolute", "FillXY", "FillXand much more.                                                                                                                                                      |+| Layout.GetType()                                               | This returns the string "Layout"                                                                                                                                                      |
 | Layout.GetVisibility()                                         | This returns a Layout's visibility mode. “Hide”, “Show” or “Gone”                                                                                                                                                                                  | | Layout.GetVisibility()                                         | This returns a Layout's visibility mode. “Hide”, “Show” or “Gone”                                                                                                                                                                                  |
-| Layout.GetWidth()                                              | This returns the Width of an Layout.                                                                                                                                                                                                               +| Layout.GetWidth()                                              | This returns the Width of an Layout.                                                                                                        | 
-| Layout.Release()                                                                                                                                                                                                                                                                                                  |+| Layout.SetOnTouch( callback )           |Does not work in 'TouchThrough' mode               | 
 +| Layout.SetOnTouchDown( callback )       |only OnTouchDown works when in 'TouchThrough' mode | 
 +| Layout.SetOnTouchMove( callback )       |Does not work in 'TouchThrough' mode               | 
 +| Layout.SetOnTouchUp( callback )         |Does not work in 'TouchThrough' mode               
 +| Layout.Release()                                                              |
 | Layout.RemoveChild( child )                                    | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ).                                                                                                                                                    | | Layout.RemoveChild( child )                                    | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ).                                                                                                                                                    |
 | Layout.SetBackColor( colorCode )                               | This sets the Background Color of an Layout.                                                                                                                                                                                                       | | Layout.SetBackColor( colorCode )                               | This sets the Background Color of an Layout.                                                                                                                                                                                                       |
built_in/layouts.1428308987.txt.gz · Last modified: 2015/04/06 16:29 (external edit)