Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically Determine List.ColumnWidths
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01243619
Message ID:
01243622
Views:
21
Does it have to be ListBox? Can you use a grid with AllowCellSelection = .F. which you can make look like a Listbox? You can use its AutoFit(0 method than.

>I have a listbox class where the user selects the columns they want to see.
>I need to build the ColumnWidths property on the fly.
>
>
>>What are you trying to do?
>>
>>>I need to load a list box in a SCAN/ENDSCAN.
>>>
>>>Some columns may or may not be visible, so I want to set the ColumnWidths property
>>>from the data.
>>>
>>>How do I calculate the ListBox ColumnWidth? I could use FONTMETRIC(6,,) * FSIZE(), but that
>>>would result in some really wide columns in the listbox.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform