From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify a combo box for touch panel operation?

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
(6,006 Views)

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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(6,001 Views)

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
(5,995 Views)

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 - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 6
(5,966 Views)

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
(5,952 Views)

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
(5,400 Views)