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

采纳的回答

Voss
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 CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by