Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Markup Text - How to excape characters
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup Text - How to excape characters

 Post Reply Post Reply
Author
Message
pbergeot View Drop Down
Newbie
Newbie
Avatar

Joined: 23 September 2008
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote pbergeot Quote  Post ReplyReply Direct Link To This Post Topic: Markup Text - How to excape characters
    Posted: 16 November 2008 at 9:41pm
I need to create a markup text which has the following 3 requirements.

1> I can include the character '<' in the text portion (so I need to escape it somehow but I couldn't find out how).

2> The text portion must wrap on resize.

3> The text portion must have some bolded and non-bolded parts.

For example, I need to create the following string as markup:

If the Chicken is < than the Road it must cross the Road

(in wrapable mode)

It seems that I can align 2 out of these 3 conditions but not the 3 together. Can someone help?

Thank you.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2008 at 8:44am
Hi,
 
You can replace < to &gt; in text.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2008 at 8:23am
Originally posted by oleg oleg wrote:

Hi,
 
You can replace < to &gt; in text.


Shouldn't it be &lt for <?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2008 at 5:26am
Maybe :)
 
2pbergeot : or even better use Text property:
 
<TextBlock> <Run Text = "text>text"/>  <Run Text = "text>text"/> </TextBlock>
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.