Textformatting in tree view

Discuss GUI programming with the RapaGUI plugin here
Post Reply
User avatar
lazi
Posts: 363
Joined: Thu Feb 24, 2011 11:08 pm

Textformatting in tree view

Post by lazi » Fri Jun 03, 2016 9:06 am

Does it should work for bold entry in a treeview on OS4 MUI 4?

moai.domethod ( self.id, "InsertNode", lead..i, self.parent, "Tail", "\33b"..UpperStr(i))

Displays !b<...>

In the static xml the text formatting works.

User avatar
lazi
Posts: 363
Joined: Thu Feb 24, 2011 11:08 pm

Re: Textformatting in tree view

Post by lazi » Fri Jun 03, 2016 9:12 am

Oh bugger, it works with \27b :)

RTFM or bug?

User avatar
lazi
Posts: 363
Joined: Thu Feb 24, 2011 11:08 pm

Re: Textformatting in tree view

Post by lazi » Fri Jun 03, 2016 9:19 am

Ok. It is RTFM not a bug :)

Sorry for the post flood...

User avatar
airsoftsoftwair
Posts: 3192
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Textformatting in tree view

Post by airsoftsoftwair » Fri Jun 03, 2016 10:18 pm

RapaGUI doesn't support text formatting codes anywhere except in the Textview and Texteditor classes. Remember that RapaGUI represents the lowest common denominator between all the different platforms and on other systems it isn't as simple as in MUI to use text formatting codes.

What you're doing here is simply non-standard programming because RapaGUI doesn't support text formatting codes for Treeview class. Of course, it will work on MUI because RapaGUI just forwards the string you specify to MUI but it won't work anywhere else. You're only allowed to use text formatting codes as explained in the documentation, i.e. just for Textview and Texteditor class. Everything else is non-standard and will only work on MUI...

Post Reply