09-26-2007 02:15 AM
09-26-2007 09:33 AM - edited 09-26-2007 09:33 AM
Message Edited by smercurio_fc on 09-26-2007 09:33 AM
09-26-2007 09:41 AM
09-26-2007 09:44 AM
09-26-2007 09:53 AM
09-27-2007 12:30 AM
05-08-2013 11:21 PM
This is the only message I've seen that asked the same question, and this was over six years ago now so I was wondering if NI had implemented a solution.
I looked at LV 2012 (and the Idea Exchange), but didn't see anything obvious, so is there any Property Node or something that can change the DISPLAYED size of the dropdown menu?
I was hoping that I could read the number of strings in the array list and set the dropdown menu size so that ALL elements can be seen - up to a certain maximum size after which the vertical scrollbar would appear.
How is this size actually set? Is it a key value in the LabVIEW INI file or something?
Chris
05-09-2013 01:53 AM
@ChrisReed wrote:
How is this size actually set? Is it a key value in the LabVIEW INI file or something?
As far as I know this hasn't changed, and I'm assuming that the size is set purely in the C code. I have no idea what the actual algorithm is, from a quick test in 2009 it seems to simply be a max value constant - 10 items in the combo box and 21 items in the ring. This number might be affected by things like screen resolution or DPI.
The solutions suggested in this thread should work - use a .NET dropdown or create the dropdown yourself using a listbox.
05-09-2013 02:12 AM
Thanks tst for your response,
I want to avoid using .NET unless its absolutely necessary, because it's another dependency I have to worry about and we are installing this application on a fair number of computers (30+) and each computer's hardware/software is quite varied.
Sounds like I might have to put a request in to the LabVIEW Idea Exchange
Chris
07-02-2024 04:34 PM
I know this thread is long dead but I just came across it looking for something similar and stumbled on a solution so I thought I would share. It works in LV2020 and probably at least some older versions. If you customize the combo box, (Right click, Advanced, Customize) and then click "Change to customize mode" (looks like a wrench icon), it will show the list box that is displayed when the dropdown is activated. You can change the size of the dropdown then close the customization and apply it to your control. Then when you select the dropdown it should use the new length. I don't know what if anything this might break but it seems to work ok.