![]() |
Markup & error |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 08 October 2010 at 5:33am |
XTP 13.4.1. Using CMarkupStatic. Consider this:
m_static.EnableMarkup();
// m_static.SetWindowText("<TextBlock>&Close</TextBlock>"); <-- yields xml error... m_static.SetWindowText("<TextBlock>&Close</TextBlock>"); // xml ok :)
That sets the text to "&Close". ALT+C works, but the ampersand should not be there! For a static control you need "&&Close" to make ampersand visible!
Any ideas?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
How markup have to determine that you use it in static and don't want show "&" ? :-) Try this <TextBlock><Underline>C</Underline>lose</TextBlock>
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Underline is a good thing! :) But will ALT+C work here?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can always call CWnd::SetWindowText("&Close") to notidy system that you want Alt+C but use Markup text to draw it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Thanks. Will give it a shot!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |