Clear Filters
Clear Filters

How to set the visibility of labels attached to controls such as edit boxes in APP Designer?

22 views (last 30 days)
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

Accepted Answer

Voss
Voss on 8 May 2024
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";

More Answers (0)

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!