LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a viewable area with scrollbar?

Hi,

I am using a VI front panel to display an image. The VI loads an image dynamically and shows it in a picture control. The width of the panel and the picture control are set identically to match the image width, and a vertical scroll bar takes care of the difference in height.

My question is, how can I make the user unable to scroll beyond the image area? For example, I place the picture control at the top-left of the panel, then when I run the VI it shows the image correctly so that you can see the upper part of the image in the window, but you can also scroll up or down all the way to see a gray area that is not occupied by any controls. Is there any way to show just the area I want, even if the user scrolls all the way?  Thank you.




Message Edited by ondal on 08-12-2008 11:02 AM
0 Kudos
Message 1 of 2
(2,420 Views)
The easiest way to do this is to remove the scroll bars.
If you want access to other controls as well, you should create a seperate pane for the picture control and hide the scroll bars on that single pane.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 2
(2,407 Views)