06-04-2010 03:16 PM
I'm having a minor problem with a subVI I'm running in a subpanel. I'm running LabView 2009 on a Windows 7 machine, and am trying to turn off the scrollbars that appear in the subpanel when the main VI is running.
I have set all controls and indicators of the subVI that are not user-operated or user-read (for example, a queue refnum control) to be invisible, and am certain that the subpanel is large enough to contain the interface without needing the scrollbars. However, they continue to appear, even after going into the subVI's window properties and turning them off.
It appears that the VI's front panel, once having been larger, still remembers its former size even though there are no longer objects so spread out. I can tell this because when viewing the front panel in its own window, I see needless scrollbars, suggesting the same dimensions that the subpanel scrollbars would suggest. Is there any way to get a VI to reset its concept of the dimensions of its front panel to be only what are actually currently needed? Or is there any way to suppress the scrollbars on a subpanel regardless of the dimensions of the loaded VI?
I have attempted to use a VI property node to remove the scrollbars, but unless I am mistaken, the property list does not mention the scrollbars.
Attached is a screenshot of the main VI in operation, and the subVI.
Solved! Go to Solution.
06-07-2010 07:01 AM
Ken, I tried to to reproduce your behaviour. The only way I was able to get the scrollbars with your vi was, when i forgot to start it.
Sometimes it's the easiest thing one can't see. Did you start the SubVI ? (Is it running ?)
Rainer
06-07-2010 01:02 PM
You can change the option of scrollbar visibility in the property nodes. Attached is a snippet that shows how to do this.