Sign in to follow this  
SteveMyres

Visibilty For Panels And Static Text

Recommended Posts

Panels and static text don't have a visibility property, and oddly aren't controlled by the visibility of a group that contains them.  If you name the object you can set Component.MyPanel.Visible, but then you have to have a script executing somewhere to do it, vs just configuring the visible property in the dialog.  For consistency and ease of use, it would be nice to have access to a visibility property and also to have them follow group visibility when grouped.

Share this post


Link to post
Share on other sites

Actually, only a few components, really the very first components DAQFactory offered before it had scripting had a visibility expression like variable value components.  All components however have a visible variable like you mentioned, including a group.  If a panel or static text (or any other component) is part of a group, and you set the visible variable of the group to 0, then all the components of the group disappear.

Share this post


Link to post
Share on other sites

True.  I had a panel that I thought was included when I windowed a set of objects and grouped them, but that corner of the group boundary was evidently defined by another overlaid object, so I assumed incorrectly that the panel was a member of the group.  That was why the visibility didn't inherit from the group..

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this