Dear Developers and Colleagues,
I want to wish everyone a Happy New Year 2026! And wish everyone good health and prosperous year.
Could you tell pls is it possible to programmatically change the tab for displaying, e.g.
//Create tabs.
tabs = app.CreateTabs( "DOGanizer, Food, Web", 1, 1, "left, fillX" );
tabs.SetOnChange( tabs_OnChange );
lay.AddChild( tabs );
//Add button to first tab.
layDOGanizer = tabs.GetLayout( "DOGanizer" );
layDOGanizer.SetBackground("Img/IMG_20240818_115116_69 (1).jpg");
//btn = app.CreateButton( "Button" );
//layDOGanizer.AddChild( btn );
// First horizontal lines for Title text
layHoriz = app.CreateLayout( "Linear", "Horizontal");
layDOGanizer.AddChild( layHoriz );
txtTitle = app.CreateText( "January" );
layHoriz.AddChild(txtTitle);
//Add button to second tab.
layFood = tabs.GetLayout( "Food" );
layFood.SetBackground("Img/IMG_20240818_115116_69 (1).jpg");
//chk = app.CreateCheckBox( "CheckBox" );
//Create the first screen layout
lay_first_screenVert = app.CreateLayout( "Linear", "Vertical,FillXY" );
scdTabFood();
layFood.AddChild( lay_first_screenVert );
//Add webview to third tab.
layWeb = tabs.GetLayout( "Web" );
web = app.CreateWebView( 1, 1 );
web.SetOnProgress( web_OnProgess );
layWeb.AddChild(web);
//web.LoadUrl( "
https://dogplanner.tilda.ws" );
web.LoadUrl("
https://dogplanner.tilda.ws/");
//Add layout to app.
app.AddLayout( lay );
And we are wanting to display Web tab by using code. Is it possible to somehow doing this? Or it is possible to do only manually.
Thank you very much in advance!
Best regards
Dmitry