How to set the visibility of labels attached to controls such as edit boxes in APP Designer?
10 次查看(过去 30 天)
显示 更早的评论
I want to make all the edit boxes invisible, but I achieved this by using the programming statement "app. EditField_19. Visible=" off ";" to make the edit boxes invisible, but the labels are still visible(Figure 2); How to solve this situation where the name of this tag cannot be seen in the component browser despite selecting it individually, so it cannot be programmed as invisible?
The normal visible situation is shown in Figure 1; The current situation is shown in Figure 2;
Figure 1
Figure 2
0 个评论
采纳的回答
Voss
2024-5-8
First, make the label show up in the Component Browser by right-clicking the edit field and selecting "Include component labels in Component Browser", as described here:
Then you know the label's name, so you can set the visibility of the label in your code, e.g., app.EditField_19Label.Visible = "off";
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!