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

13 次查看(过去 30 天)
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?

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by