[Gambas-user] Values of a string with a given font size
Eilert
eilert-sprachen at ...221...
Wed Feb 15 16:39:34 CET 2006
Hi Rolf :-)
rolf schrieb:
>Hi,
>
>is it possible to get the length and hight of a string with a given font in
>pixels.
>
>
Yes, there is a font.height and font.width property you can read out
giving a string, just let me look it up...
Well, for example you can write
hoehe = Button1.Font.Height("OK")
breite = Button1.Font.Width("OK")
>This will allow to adjust the controls on screens with different resolutions
>
>
>Many thanks
>Rolf Schmidt
>
>
Hope it helps!
Rolf-Werner Eilert
More information about the User
mailing list