Discussion:
How to set a viewable area with scrollbar?
(too old to reply)
ondal
2008-08-12 16:10:10 UTC
Permalink
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
TonP
2008-08-12 17:10:06 UTC
Permalink
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
Continue reading on narkive:
Search results for 'How to set a viewable area with scrollbar?' (Questions and Answers)
6
replies
What is the size of a website suppose to be?
started 2009-11-08 19:22:24 UTC
programming & design
Loading...