Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto set ColumnWidths Property for Comboboxes?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Auto set ColumnWidths Property for Comboboxes?
Miscellaneous
Thread ID:
00407724
Message ID:
00407724
Views:
62
I am trying to use TXTWIDTHS() function to determine my ColumnWidths of my Combobox. I get some numbers like 21, 36, 30 for various items in the rows in my drop-down list, but I can't seem to figure out how to or where to or when to put the largest of those value in order to use it to set my combobox column width.

I tried changing my Form to Foxels instead of Pixels, but no help. The weird thing is if I set my ColumnWidths property to a number like 150 foxels when I first click on the combobox it appears that the drop-down list is only as wide as my combobox, but if I select an item from the drop-down list and then click on the combobox, I see a somewhat wider drop-down list, but not wide enough to show my longest item.

What's wrong? I would like to auto set the column width but I can't use Builder because my comboboxes are populated using arrays. The arrays are populating fine, I just can't get the column widths as wide as I need them. I alltrim all of the entries in my arrays so they are preset to be the correct size at Form Init time for my comboboxes.

TIA!
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform