Possibillity of programmatically changing the tabs for displaying

40 views
Skip to first unread message

DogPlanner GSS

unread,
Jan 15, 2026, 5:59:33 AM (2 days ago) Jan 15
to DroidScript
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

Alan Hendry

unread,
Jan 15, 2026, 8:16:23 AM (2 days ago) Jan 15
to DroidScript
HI,
Tabs AddChild("Tab4",2) exists, but is not documented,
 I posted in March 2022 that it didn't work.
(Ditto for Tabs.RemoveChild("Tab2"))
You could remove them all (RemoveChild from theem toe Layout)
but then you have to rebuild the tabs and content.
Or Hybrid tabs have addTab (and removeTab).
There was a plugin for CustomTabs, 
but you have to find it with Google, 
and it doesn't seem to install for me.
Or you can write your own, see my DIY tabs
Or tmEditor has tabs
Regards, Alan H

DogPlanner GSS

unread,
Jan 16, 2026, 9:55:44 PM (18 hours ago) Jan 16
to DroidScript
Dear Alan,

Thank you very much for your detailed answer! We will try these options.

Have a nice day.

Best regards,
Dmitry

четверг, 15 января 2026 г. в 16:16:23 UTC+3, hendr...@gmail.com:
Reply all
Reply to author
Forward
0 new messages