![]() |
Markup & error |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: Markup & errorPosted: 08 October 2010 at 1:59pm |
|
Thanks. Will give it a shot!
|
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 October 2010 at 1:11pm |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 October 2010 at 9:55am |
|
Underline is a good thing! :) But will ALT+C work here?
|
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 October 2010 at 6:58am |
|
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 |
Post Options
Thanks(0)
Quote Reply
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/
|
|
![]() |
|
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 |