Page 1 of 1

Textformatting in tree view

Posted: Fri Jun 03, 2016 9:06 am
by lazi
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.

Re: Textformatting in tree view

Posted: Fri Jun 03, 2016 9:12 am
by lazi
Oh bugger, it works with \27b :)

RTFM or bug?

Re: Textformatting in tree view

Posted: Fri Jun 03, 2016 9:19 am
by lazi
Ok. It is RTFM not a bug :)

Sorry for the post flood...

Re: Textformatting in tree view

Posted: Fri Jun 03, 2016 10:18 pm
by airsoftsoftwair
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...