Re: font extent question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek, thanks. That worked fine...

...george
----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: font extent question


>
> Sure, try this...
>
>   setFont(Screen, "Arial", 20, Bold)
>   charSize = getTextExtent(Screen,"abcdefghij")
>
> The "Screen" id is always available.
>
> ----- Original Message -----
> From: "George Walters" <gwalters at sc.rr.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Tuesday, August 28, 2001 7:25 AM
> Subject: font extent question
>
>
> > Is there a way to find the extent of a font w/o having to have an
editText
> > control open? My problem is i'm trying to determine font size and extent
> > before my program launches any windows and controls....so I can select
> these
> > parameters before launching.
> >
> > this method (charSize = getTextExtent(id,"abcdefghij")) requires an
> existing
> > control.
> >
> > If i'm on the wrong track give me a hint...
> >
> > ...george
> >
> >
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu