LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the enum scroll bar width?

Hi All,

 

I have an enum control on user interface, and I want to make it's scroll bar width wider so that it will work better with touch screen.  

 

Any idea? How to?

 

 

Thanks a lot for any help.

 

Anne

0 Kudos
Message 1 of 5
(3,559 Views)
Are you referring to the increment/decrement controls? I'm not aware of a scroll bar for enums. If so, you can simply customize the control. Right-click on the control and select Advanced -> Customize... You can then resize any part of the control. See the LabVIEW Help for how to use the Control Editor.
0 Kudos
Message 2 of 5
(3,552 Views)
I think he might be refering to the system style enum with the drop down menu button [v] on the side.  As far as I can tell, that button can not be resized in the customize window.
Jon D
Certified LabVIEW Developer.
0 Kudos
Message 3 of 5
(3,539 Views)

Ah, that one. I don't usually have enough items in my enums that scroll bars show up in the list in the first place. Smiley Very Happy I did a quick test, and I had to get 29 items into the enum before the scroll bar showed up.

 

In this case would a ListBox work for you? You can customize the width of the scroll bar for that (assuming you're using the LabVIEW native ListBox, and not the "System" style ListBox). Alternatively, you can probably create an XControl that would be a composite of a dropdown and a listbox. When the user clicks on the dropdown the listbox gets displayed. XControls are not that easy to program, however.  My memory may be incorrect, but I thought somebody was fiddling with an XControl similar to this at one point.

Message 4 of 5
(3,533 Views)

My application is with touch screen, so the font size is big,  and the scroll bar shows with 10 items.  The boss doesn't like ListBox.  🙂  I will try the Xcontrol.

 

Thanks.

 

Anne

0 Kudos
Message 5 of 5
(3,524 Views)