Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining largest fontsize for a textbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00564266
Message ID:
00564301
Views:
12
Yes. Something like this.
Keep in mind also that actually you do not know in advance what fonts are available.

>Hmmm... Looking at this function, all I can think to do with it is loop through all the font sizes until I hit one that's too big (determined using FONTMETRIC with 1 and 7) and then take it down one. Is that what you had in mind, or am I missing something?
>
>Thanks,
>
>Michelle
>
>
>>You need to compare fontmetric(1,...) with the textbox height.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform