LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fixing one scroll bar using Vi properties

Hi Everybody,
 
I have made a cluster of five elements. After that i made the array of the cluster. Now in my program i don't want to show the index of that array. Size of array is variable. Sometimes it goes out of screen size. So, can i add a scroll bar to that array using some function.
Is there any way using that i can set the horizontal and vertical scroll bar separately in VI properties. I want to fix the horizontal bar but want to show the vertical bar in my front panel.
 
ranjeeta
0 Kudos
Message 1 of 12
(4,428 Views)
Hi ranjeeta

On your block diagram, right click on the array indicator select  create >> property node. In the bottom section of the list you'll find property nodes for making both horizontal and verticle scrollbars visible. The default status of any property node you place will be a read node. Right click on it and select change all to write. If you then wire a true constant to the node, your scrollbar will become visible. Explore what you can do with all the property nodes because they are great for making your front panel that little bit more profesional.

Hope this helps
0 Kudos
Message 2 of 12
(4,413 Views)

Hi Rich ,

I have tried, what you have suggested. I didn't get any option regarding scroll bar. That option comes in property node, if you have taken a table or list box control. Please suggest me some other solution.

Message Edited by Ranjeeta on 09-06-2007 03:17 AM

0 Kudos
Message 3 of 12
(4,385 Views)
Sorry my instructions completely missed the fact the array was in a cluster. You can still create the property nodes for the individual elements within a cluster by right clicking on them on the front panel. So on the front panel, right click the array you want the scroll bar on and as before go to create property node. Hope this helps
0 Kudos
Message 4 of 12
(4,382 Views)
Can you interactively create scroll bars on your array?  This feature is relatively new, so may not be in your version of LabVIEW.  If this is the problem, there are workarounds.  Let us know.
Message 5 of 12
(4,371 Views)

hi Rich,

I don't want to give the scroll bar to the individual element. i want to give the scroll bar to the whole array. so, that without the index array user can see the last element of array using scrll bar.

Message Edited by Ranjeeta on 09-10-2007 03:43 AM

0 Kudos
Message 6 of 12
(4,343 Views)
No, i can't create scroll bars on my array . i want to create the scroll bar.... if you have any information regarding this plz tell me that.
0 Kudos
Message 7 of 12
(4,337 Views)
To create a scrollbar for an array

LabVIEW 8.0 and higher
Interactively, right-click the array and select the scrollbar you want from the Visible Items list.  Programatically, use the Horizontal/Vertical Scroll Bar Visible property in the VI server property node to turn the scroll bars on and off.  The property is near the bottom of the list, so you will probably need to scroll the list to find it.

LabVIEW 6.1 - LabVIEW 7.1
There is not native scroll bar, so you have to make one from a listbox.  Drop a normal Listbox and customize it.  You will want to color the background transparent and the change the border to a transparent flat rectangle.  This has the effect of leaving a floating scroll bar.  Fill the item names with an array of about as many items as you want for maximum output.  For the output, create an event structure.  On a mouse down event on the listbox, set a boolean flag to enable tracking of the mouse (store it in a shift register).  On the VI front panel mouse move event, check the Top Row property value for the listbox to get the "scrollbar" position if the boolean flag is set.  On mouse up event on the listbox, turn the flag off.  The mouse move event on the listbox does not fire when the mouse move over the listbox scrollbar, so this roundabout method is necessary.

I do not have an earlier version of LabVIEW on my system, but you should be able to use a similar method by polling a Listbox at 50ms to 200ms intervals (no event structure in LabVIEW 6.0 and earlier).

Good luck.  Let us know if you need more help.
Message 8 of 12
(4,328 Views)
hey thank a lot.
0 Kudos
Message 9 of 12
(4,306 Views)

Hi Ranjeeta,

Please tell the LV version you re using at the time of posting your first query itself.

You would ve got the answer much earlier if you had done so...

 

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 10 of 12
(4,294 Views)