Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine width for a control?
Message
 
À
16/12/1997 10:28:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00066206
Message ID:
00066229
Vues:
39
>>>>If I am using a non-proportional font for a control does anyone have a calculation to determine the maximum value needed for Width?
>>>
>>>If you have AutoSize=.T., setting the new label will give you the width. You can then take action depending on the width.
>>
>>I have AutoSize=.T. in my label base class. What I was after was determining the width for objects like textboxes, comboboxes, etc.
>
>I see, you would like to size your textbox controls with an approximative width based on the maximum number of characters. There are a few builders that will allow you to do that. In your case, you will get the exact size as you are working in non proportional font. I think those builders are called autosize builders or something like that.

That works great, thanks. Another related question though. If an object is on the form I can right-click and pick Builder..., but how do I activate the builder for an object in a grid? Right-click just keeps selecting the column.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform