Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox dropdown width
Message
From
14/06/2013 08:21:58
 
 
To
14/06/2013 02:58:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01576281
Message ID:
01576388
Views:
37
>>>Hi All,
>>>
>>>Forgotten - is there a way to set the max width of the dropdown list of a combobox?
>>
>>If you have only one column, I use a workaround:
>>
>>THIS.ColumnCount = 2
>>THIS.ColumnWidths = TRANSFORM(THIS.Width) + ",0"
>
>Hi Christian. It does reduce the width but not to match the ComboBox itself. See image attached.
>
>I have forced it another way by reducing the field width to something more comparable to the ComboBox . It's a hack but it works good enough for purpose. Thanks

On another note, I see your combobox has quite a lot of items. In this case I usually would prefer a lookup list with search and filter functionality that the client can open with a shortcut or button next to the field.
My (personal) rule of thumb is, combobox can contain maximal 31 items, it it's more than that it's not nice to use. This is the number of days in a month that you sometimes encounter in a day selection control on a webform where you enter your birthday. That reminds me of something:
SET RANT ON
I do not understand that on all the webforms, with a day selection combobox they set the maximum visible items to less than 31? My daughter is born on 31 March, and I ALWYAS must scroll this thing down to make the 31 visible. Don't they know there are a few months in the year that have 31 days?
SET RANT OFF
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform