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

12 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

Adam Danz
Adam Danz am 9 Feb. 2023
See this related answer: Control tab selectivity.
  2 Kommentare
Othman Alkandri
Othman Alkandri am 10 Feb. 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;

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by