Effacer les filtres
Effacer les filtres

How can make the user not be able to change tabs by clicking on them Matlab app designer?

19 vues (au cours des 30 derniers jours)
Hello guys, I have five tabes in my app
ideally,
When you first the code, it gives you the welcome Tab. Then when you click Begin button, it takes you to the Home Tab. In the home Tab, you make a selection. Then you click confirm button. Then click on the Go Button it takes you to the appropriate Tab (Mechanical propulsion or AC or DC ). Also, The user can go to the home page by clicking on the home bottom.
However, the user can switch between Tabs by clicking on the Tabs the user wishes to open.
How can I stop this behavior by only allowing the user to move between Tabs by clicking on the buttons and following the path I want him to take?

Réponse acceptée

Adam Danz
Adam Danz le 9 Fév 2023
See this related answer: Control tab selectivity.
  2 commentaires
Othman Alkandri
Othman Alkandri le 10 Fév 2023
Thank you for your answer. Using the link opened my eyes to finding the solution.
Check out the code. You just need to put in startupFun
app.InverterParametersTab.Parent = [];
app.PhysicalParametersTab.Parent= [];
In the button, you want to make the tabs available again use.
app.InverterParametersTab.Parent = app.TabGroup;
app.PhysicalParametersTab.Parent= app.TabGroup;

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by