Escape Characters

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

CaseyB
Just popping in
Just popping in
Posts: 7
Joined: Thu Jun 08, 2006 04:24

Escape Characters

Postby CaseyB » Mon Jun 11, 2007 19:50

I tried to use a "\t" to add a tab to the text in a DefaultWindow, but it was not interpreted at all. The two strings that are sperated by the "\t" butt right against each other.

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Mon Jun 11, 2007 21:30

That's currently not supported.

Have a look at clickable link widget and Different colours in one string for two approaches that modify how fonts are rendered.

In your case you'd have to figure out the position from the left margin (multi-line support) and where the tabs need to be anchored at.

My idea/thoughts on this matter are that there is a need for text markup to easily add support for various text attributes within a string, much like the strings we can generate here on the message board, such as what I was able to create in this paragraph.

One approach could be to have a ScrollablePane parse a text string and generate DefaultText parts on the fly and properly lay them out.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests