Table of Contents

AddLayout

lay = app.CreateLayout( “Linear”, “VTop,FillXY” );

Description

Use the AddLayout method to add your layouts to the App. Each layout added will be placed on top of the previously added layout. Note: You can add empty layouts above your main layout and then add or remove objects from these empty layouts at any time to create popup or slide out panel and menu effects.

 app.AddLayout( layout );

See also Layouts, RemoveLayout


Example - Vertical

function OnStart()
{
  lay = app.CreateLayout( "Linear", "Vertical,VCenter" );
 
  txt = app.CreateText( "Hello" );
  lay.AddChild( txt );
 
  app.AddLayout( lay );
}