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:
01243623
Views:
26
I would really prefer to not use a grid. Seems like alot of overhead.



>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.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform