frbuttonclass does not support GA_TextAttr

This forum is for general developer support questions.

frbuttonclass does not support GA_TextAttr

Postby chris » Tue Nov 17, 2015 5:10 pm

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

Any chance of this being added/fixed?
chris
 
Posts: 551
Joined: Sat Jun 18, 2011 12:05 pm

Re: frbuttonclass does not support GA_TextAttr

Postby salass00 » Sat Nov 21, 2015 7:05 pm

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.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 506
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland

Re: frbuttonclass does not support GA_TextAttr

Postby chris » Sat Nov 21, 2015 11:29 pm

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.
chris
 
Posts: 551
Joined: Sat Jun 18, 2011 12:05 pm

Re: frbuttonclass does not support GA_TextAttr

Postby salass00 » Sat Nov 28, 2015 11:55 am

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.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 506
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 2 guests