LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView 2009 Subpanel Scrollbar

Solved!
Go to solution

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.

 

subVI scroll bar.jpg

0 Kudos
Message 1 of 3
(4,741 Views)

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

 

Message 2 of 3
(4,706 Views)
Solution
Accepted by topic author Ken_Brooks

You can change the option of scrollbar visibility in the property nodes.  Attached is a snippet that shows how to do this.

 

scrollbars.png

National Instruments
Applications Engineer
Message 3 of 3
(4,684 Views)