JavaScript
A5.ViewBoxsetLayout Method
Syntax
A5.ViewBox.setLayout(layout[,keepValue[,animation]])
Arguments
- layoutstring
The name of the layout to show in the view box.
- keepValueboolean
Whether or not to keep the previous value of the view box, or reset it.
- animationbooleanstringobject
What animation to perform. To not animate pass in false. If a string is passed in the value of the string is assumed to be the name of the animation to do. If an object is passed in it must conform to the view box animation object. See A5.ViewBox Animation Object.
Description
Change the currently used layout.
Example
// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl // assume vbObj is a pointer to an instance of the A5.ViewBox class vbObj.setLayout('sub1'); // set the current layout to the layout named "sub1"