frbuttonclass does not support GA_TextAttr

This forum is for general developer support questions.
Post Reply
chris
Posts: 562
Joined: Sat Jun 18, 2011 11:05 am
Contact:

frbuttonclass does not support GA_TextAttr

Post by chris »

Or at least it isn't working for me here.

Any chance of this being added/fixed?
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: frbuttonclass does not support GA_TextAttr

Post by salass00 »

chris wrote:Or at least it isn't working for me here.

Any chance of this being added/fixed?
If you use an IntuiText as the gadget label (GadgetText) then you should be able to specify a TextAttr using IntuiText->ITextFont.
chris
Posts: 562
Joined: Sat Jun 18, 2011 11:05 am
Contact:

Re: frbuttonclass does not support GA_TextAttr

Post by chris »

salass00 wrote:
chris wrote:Or at least it isn't working for me here.

Any chance of this being added/fixed?
If you use an IntuiText as the gadget label (GadgetText) then you should be able to specify a TextAttr using IntuiText->ITextFont.
Hmm, but doesn't the class convert GA_Text into IntuiText internally? In which case supporting GA_TextAttr should be trivial.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: frbuttonclass does not support GA_TextAttr

Post by salass00 »

chris wrote: Hmm, but doesn't the class convert GA_Text into IntuiText internally? In which case supporting GA_TextAttr should be trivial.
No, it simply puts the string directly in gadget->GadgetText and sets the GFLG_LABELSTRING flag in gadget->Flags.

To set an intui text label you should use GA_IntuiText.
Post Reply