1. font extent question
- Posted by George Walters <gwalters at sc.rr.com> Aug 27, 2001
- 405 views
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
2. Re: font extent question
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 28, 2001
- 400 views
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> 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 > > >
3. Re: font extent question
- Posted by George Walters <gwalters at sc.rr.com> Aug 28, 2001
- 429 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 > > > > > >