LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create windows-like Scrollbar/Slider?

I want to create a scrollbar similar to a windows scrollbar where the user has the ability to not only click and drag to a desired position, but also click on arrows to move the scrollbar too!!

I'm doing this because I'm trying to create a control for my pan/tilt on the camera, and want the user to be able to drag and move the cursor, but also just click left/right to see it pan.

Is that possible?? Thanks!
0 Kudos
Message 1 of 3
(2,912 Views)
Really two ways of creating the look and feel you want.

1. All the Controls in LabVIEW are simply objects represented by several images. You can actually replace the default images with your own giving most controls your desired appearance without changing the functionality of the control itself. To do this follow these steps.
a) simply select the desired object (in your case a slider)
b) goto the 'Edit' pulldown in hte menu bar and select 'Customize Control'
c) click on the wrench image.
At this point you can select the different images that gives the slider its appearance and replace them with the images that gives it more of a windows like look and feel. The manual will give you more valuable information about this feature.

2. The other option, i
f you have a Windows OS,which can be quicker, is to use an existing Active X control. I happen to have an Active X Scroll Bar Control the Object is listed as Microsoft Forms 2.0 Scrollbar. Half of the Active X controls I have I don't know where they came from unfortunately this is one of them so if you don't have it I don't know how you can get your hands on it. If you don't know how to use Active X controls in LabVIEW but you are familiar with Active X controls don't worry it shouldn't take you long to figure it out. If you don't know what an Active X control is go back to my first suggestion.

-Christer
0 Kudos
Message 2 of 3
(2,912 Views)
Hi Janet637,

Here are some links and examples that you might find useful to create custom scrollbars

Without ActiveX

For ActiveX, you may want to try using a Microsoft Flat ScrollBar Control.

For more information on ActiveX, here is a reference document to read.

Good Luck!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 3 of 3
(2,911 Views)