Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically Determine List.ColumnWidths
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01243619
Message ID:
01243622
Vues:
22
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform