Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine width for a control?
Message
From
16/12/1997 10:28:40
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00066206
Message ID:
00066221
Views:
33
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform