How do I make a widget initialize as "invisible" in App Designer?
Show older comments
I have an app where I've altered the functionality such that certain widgets are no longer used. Unfortunately, I don't want to delete them outright since I've been using their associated structures to hold various bits of data that I frequently query with the remaining widgets. I would like to make them completely invisible in the figure window though. Currently, I've moved them into the background or off the actual figure, but sometimes their imprints or "echoes" still appear. I saw that there is a 'visible' property for these widgets (ie: app.widgetname.Visible='off'), but I only know how to set this property after I've actually triggered a callback within my application. Is there a way to get the application to initially set these features as invisible when the application is started before any human interaction?
Accepted Answer
More Answers (1)
Cris LaPierre
on 27 Aug 2019
Edited: Cris LaPierre
on 27 Aug 2019
1 vote
Set their visibility property to "off".
In Design View, select the component, and in the component browser (on the right) under Inspector, expand Interactivity and uncheck Visible.

1 Comment
who what where
on 27 Aug 2019
Edited: who what where
on 28 Aug 2019
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!