Re: font extent question
- Posted by George Walters <gwalters at sc.rr.com> Aug 28, 2001
- 428 views
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 > > > > > >