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:
00564273
Views:
19
This message has been marked as the solution to the initial question of the thread.
You need to compare fontmetric(1,...) with the textbox height.

>I tried searching under "fontsize" for this, but didn't find what I'm looking for, so I'm going to ask...
>
>Anyway, I have a textbox with a courier new font (not bold). It will hold 2 characters. Given the height and width of the textbox, is there a way to determine the largest fontsize I can use? Some sort of forumla?
>
>Thanks,
>
>Michelle
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform