LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I disable the only the Horizontal scrollbar in a LabView window?

In my application, I have a dynamicly loaded VI. I need to have a vertical scrollbar without having a horizontal scrollbar. In the windows appearance properties, I know that I can remove the Scroll Bars. but that is for both. Is there a way that I can disable one or the other?

Dan
0 Kudos
Message 1 of 7
(3,572 Views)
Offhand, I can think of two quick ways. One, make your front panel narrow and reactivate the scrollbar. The other is to get rid of the scrollbars and simulate one yourself, which can be seen in the attachment. This needs some refining and you can also use microsoft's scrollbar control.
Somewhere in the windows API there is an EnableScrollbar function which may do what you want, but I never tried it.

___________________
Try to take over the world!
0 Kudos
Message 2 of 7
(3,555 Views)
You might be able to load the dynamic VI is a subpannel control. The subpannel control allows to turn on and off vert/horiz. scroll bars independently but I have not played with this function too much. Depending on which VI is loaded you can set the scroll bars as needed.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 7
(3,548 Views)
Hi,

The LabVIEW scrollbars are not window scrollbars (e.g. the scrollbars are native to LabVIEW). So there is no windows api that will disable them. I didn't check this with LV7, but is was like this up to LV6.

Regards,

Wiebe.


"tst" <x@no.email> wrote in message news:177465@exchange.ni.com...
Offhand, I can think of two quick ways. One, make your front panel narrow and reactivate the scrollbar. The other is to get rid of the scrollbars and simulate one yourself, which can be seen in the attachment. This needs some refining and you can also use microsoft's scrollbar control.<br>Somewhere in the windows API there is an EnableScrollbar function which may do what you want, but I never tried it.


scroll.JPG:
http://forums.ni.com/attachments/ni/170/103715/1/scroll.JPG
0 Kudos
Message 4 of 7
(3,516 Views)
Interesting.
The scrollbars in LV 7 on my computer look exactly the same as the scrollbars I see when I look at this page in internet explorer, so I guess they are windows ones. Maybe I'll try finding that function and see if it works.

___________________
Try to take over the world!
0 Kudos
Message 5 of 7
(3,511 Views)
This issue has been raised many times before, and there is no elegent way to solve it yet.

A couple options:
1. Using WinAPI to create a scrollbar, or a statusbar to block the scrollbar.

2. Using WinAPI to reset the region of the window, so that the scrollbar is out of region.

I created VIs in 1998, LV4.1 to do this. Still can be found on my website.


George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 6 of 7
(3,488 Views)
Suit yourself. I thing you're wasting your time. The scrollbars look the same in Linux too... (It's not that hard to check what the default colors and sizes of the OS are, and to create a custom object.)

Regards,

Wiebe.


"tst" <x@no.email> wrote in message news:178375@exchange.ni.com...
Interesting.<br>The scrollbars in LV 7 on my computer look exactly the same as the scrollbars I see when I look at this page in internet explorer, so I guess they are windows ones. Maybe I'll try finding that function and see if it works.
0 Kudos
Message 7 of 7
(3,468 Views)