Skip to content

Commit 3fbc19d

Browse files
committed
Document TouchSpy and TouchThrough #254
1 parent b2b4b89 commit 3fbc19d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

files/markup/en/app/AddLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* AddLayout adds a layout to the screen so that it is visible (if not hidden with SetVisibility)
77
* When @CreateLayout arguments are passed it will create the layout just like app.CreateLayout and also add it.
88
*
9-
* See Also: @RemoveLayout
9+
* See Also: @CreateLayout for arguments (parameters), and @RemoveLayout
1010
* $$ app.AddLayout(layout, type?, options?) $$
1111
* @param {dso} layout CreateLayout
1212
* @param {str} [type] Linear|Absolute|Frame|Card

files/markup/en/app/CreateLayout.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ Layouts are container objects which are used to visually organize graphical obje
2020
Layouts are transparent by default but you can set a background image which can be tiled or stretched to fill the layout. You can also set a background color or background gradient.
2121
2222
You can add child objects to the Layout using the AddChild function: <js>lay.AddChild( object );</js>
23-
The alignment of chlld objects within a layout can be set by adding the **options** “Left”, “Right”, “Bottom” and “VCenter”, by default objects will be aligned “Top,Center”.
23+
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”.
24+
25+
The **options** value “TouchSpy” causes the layout to respond to touch actions on contained controls. That is, the individual control processes the touch event, and the layout also processes the touch event.
26+
27+
The **options** value “TouchThrough” causes the layout to pass its own touch actions down to underlying children. That is, the layout processes the touch event, and the event is also passed to child components (including other layouts).
2428
2529
### Linear Layouts
2630
Linear layouts are probably the most useful type and are used to organize controls in either the default “Vertical” or “Horizontal” direction on screen.

0 commit comments

Comments
 (0)