So how DO you change the font of a control???

This certainly does NOT work. (Tested on OS3.5)

> >>oldFont = FntSetFont ( bldFont );
> >>CtlSetLabel ( controlPointer, labelPointer );
> >>FntSetFont ( oldFont );

This DOES work, but is "illegal", in fact the newest (3.1) Emulator
complains *specifically* about this code type of thing.

> >ctl=FrmGetObjectPtr(frm,FrmGetObjectIndex(frm,i));
> >ctl->font=boldFont;
> >CtlEraseControl(ctl);
> >CtlDrawControl(ctl);

I'm going to continue to develop using this code, as it's the only way
possible AFAIK.  Anyone else have a suggestion here??

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
Australia



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to