03-13-2006 10:53 AM
03-13-2006 10:56 AM
If you are displaying the panel scrollbars at run-time, then I don't know of any way to limit how far the panel can be scrolled. My best suggestion for you is to hide the scrollbars on the window itself, and instead stick your own scrollbars on there. LabVIEW 8.0 introduced the Scrollbar Control (on the Numeric subpalette)...you can put these on your panel, and you can simply set the data range on the scrollbars to indicate how far you want the user to be able to scroll. Also, you can have the scrollbars coerce to the data range so it is impossible to scroll them beyond that range. And depending on the position of the scrollbars, you can programmatically change the panel position. I realize this would require extra coding, but it's the only think I can think of if you want a scrollable front panel, but you want limits on the scrolling.
Have you considered some other UI construct besides scrolling to present all your configuration options to your user? Perhaps a Tab Control would be a better choice?
Good luck,
-D
03-13-2006 11:47 AM