Textformatting in tree view

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

Textformatting in tree view

Post 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.
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Re: Textformatting in tree view

Post by lazi »

Oh bugger, it works with \27b :)

RTFM or bug?
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Re: Textformatting in tree view

Post by lazi »

Ok. It is RTFM not a bug :)

Sorry for the post flood...
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Textformatting in tree view

Post 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...
Post Reply