Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine width for a control?
Message
De
16/12/1997 10:28:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00066206
Message ID:
00066221
Vues:
34
>>>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform