Enable HTML in button-text ---- ==== Example - Default Size ==== function OnStart() { lay = app.CreateLayout( "Linear", "VCenter,FillXY" ); btn = app.CreateButton( "Press Me" ); btn.SetOnTouch( SayHello ); lay.AddChild( btn ); app.AddLayout( lay ); } function SayHello() { app.ShowPopup("Hello World!"); } ==== Example - Fixed Size ==== function OnStart() { lay = app.CreateLayout( "Linear", "VCenter,FillXY" ); btn = app.CreateButton( "Press Me", 0.5, 0.2 ); btn.SetOnTouch( SayHello ); lay.AddChild( btn ); app.AddLayout( lay ); } function SayHello() { app.ShowPopup("Hello World!"); } ==== Example - Fill layout width ==== function OnStart() { lay = app.CreateLayout( "Linear", "VCenter,FillXY" ); lay.SetPadding( 0.02, 0.02, 0.02, 0.02 ); btn = app.CreateButton( "Press Me", -1, -1, "FillX" ); btn.SetOnTouch( SayHello ); lay.AddChild( btn ); app.AddLayout( lay ); } function SayHello() { app.ShowPopup("Hello World!"); } ==== Example - Change Style ==== function OnStart() { lay = app.CreateLayout( "Linear", "Vertical,FillXY" ); lay.SetPadding( 0.1, 0.1, 0.1, 0 ); b1 = app.CreateButton( "Normal", -1, -1, "FillX" ); lay.AddChild( b1 ); b2 = app.CreateButton( "Gray", -1, -1, "FillX,Gray" ); lay.AddChild( b2 ); b3 = app.CreateButton( "Alum", -1, -1, "FillX,Alum" ); lay.AddChild( b3 ); app.AddLayout( lay ); }