Grid objects using the CreateGridLayout method of the Support object:
sup.CreateGridLayout( options );
Options: FillX, FillY, FillXY
Example - Simple
app.LoadPlugin( "Support" );
function OnStart()
{
lay = app.CreateLayout( "Linear", "VCenter,FillXY" );
sup = app.CreateSupport();
grid = sup.CreateGridLayout();
grid.SetColCount( 3 );
for( var i=0; i<10; i++ )
{
btn = app.CreateButton( "Hello World: "+i );
grid.AddChild( btn );
}
lay.AddChild( grid );
app.AddLayout( lay );
}
The following methods are available on the Grid object:
SetColCount( count )
SetRowCount( count )
SetAlignMode( margins/bounds )
AddChild( child )
Other Methods:
Show Other Methods