LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify a combo box for touch panel operation?

Highlighted

Hi, 

 

I'm developping a touch panel controled application.

 

The first step of the application is user log-in. My application has a small database of names that the user can access via the drop down menu of a combo box. 

 

My problem is that the arrows and the slider of the vertical scroll bar are way too small to be fingers-operated:

 

How to make the slider and the arrows bigger??

 

Is there a way to modify the size of this scrollbar so that it's not too small for the operators' fingers?

 

Best regards,

 

peper

0 Kudos
Message 1 of 6
(2,355 Views)
Highlighted

Hi peper,

 

probably not as it's a feature you cannot reach in the control editor...

 

Idea:

Catch MouseDown events on the name input. Open a new VI which shows a dialog to select or input a user name. Use a listbox to select user names...

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 6
(2,350 Views)
Highlighted

Hi GerdW,

 

This is the answer I feared!:-) Basically what you describe is recreating a combo box from scratch. Altough i'm pretty sure this solution will work, I'd like to avoid the headache of creating a completely custom control.

 

So, I tried to create a seperate listbox with the approriate scrollbar size and save it as a strict type def. Then I replaced the list box of the combo box with the strict type def I had just created. Didn't work...

 

Any other idea?

 

 

 

 

 

0 Kudos
Message 3 of 6
(2,344 Views)
Highlighted

Hello peper,

 

As far as I know this is not directly possible (a least not with the control editor).


If you want to, you could also create your own "adapted" control yourself through an XControl.

This one can then (for example) combine a name input, a button and a listbox (with a big vertical scrollbar).

 

Or is this too far fetched?

Kind Regards,
Thierry C - CLA, CTA - Staff R&D Engineer, RF Semiconductor Test - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 6
(2,315 Views)
Highlighted

Hi,

 

I just tried this with the mouse...  Did you notice that if you hold the mouse down and pull it down to the bottom of the list it begins to scroll??

 

The mouse down is not on the scroll bar either, just on the list.  When you mouse leave on the item you want you get your value.

 

Is this any use to you?

 

Craig

LabVIEW 2012
0 Kudos
Message 5 of 6
(2,301 Views)
Highlighted

Resurrecting an old thread whilst looking for touch screen controls.

 

You are able to customise the width of the scrollbar using windows properties. 

 

Scrollbar propertiesScrollbar properties

However this does make the change at a system level rather than per control.

 

Big scrollbarsBig scrollbars

0 Kudos
Message 6 of 6
(1,749 Views)