Hi
I would suggest you replace the buttons at the top with a horizontal gallery. In on-start in you app run this
ClearCollect(
_MainButtons, //Or whatever you want to call it
{ID:1,Title:"Werknemer"},
{ID:2,Title:"Voorb.HR"},
.....
{ID:10;Title:"Afwerking"}
)
In the gallery use _MainButtons as data source.
Add a button, and the name is ThisItem.Title. Adjust the gallery to fit the buttons.
You can of course also use icons or other element as your menu items.
Also in your gallery, You can set the selected item to be another color by setting displayMode on button to If(ThisItem.IsSelected;DisplayMode.Disabled;DisplayMode.Edit). Then change det disable color, border, fill to what you want.
On the items below (Text input and/or icons) you could group them (with conainers, do not use groups) or set this code on visible on each controller:
Switch(
MainButtonGallery.Selected.ID;
1,true,
2,false,
3,true,
...
10,false
)
I dont know enough to say you should use containers or not, but when using the container, you can make 10 of them, each for every button and then set visible to Gallery.Selected.ID=1 on the first one =2 and so on.
This is a much more effective way than using update context with 10 variables you have to turn on an of. Its also easy to add a new button and As its a gallery with one button, it only count as 2 controllers instead of 10 (when it comes to optimising your app).
I hope this helps