Print Page | Close Window

SOLVED -- MessageBar markup doesn't work in Vista

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14212
Printed Date: 17 September 2025 at 11:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED -- MessageBar markup doesn't work in Vista
Posted By: chrisABC
Subject: SOLVED -- MessageBar markup doesn't work in Vista
Date Posted: 05 May 2009 at 6:39am
I have a customer with new PC that has Vista Home Premium.

When he runs my software, all seems OK except the CommandBars.MessageBar.Message displays the markup text on the screen.

With my PC (and other customers) this MessageBar draws the panel nicely (ie. the markup works OK).

Any idea why this Vista PC should not work with the Markup ??   The MessageBar just shows:  "<Stackpanel orientation='horizontal'><... etc

The solution is that text to be displayed included one of the following "special" characters that upset
the XML markup:  < > &
Fixed by swapping these characters for lwegal ones, or replacing with escape codes.



-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: jpbro
Date Posted: 05 May 2009 at 5:33pm
If you post a sample I will test it. I have Vista Home Premium, and I often use Markup without problems...

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: jpbro
Date Posted: 05 May 2009 at 5:36pm
A thought:

If the markup that you are trying to display has any dynamic text, its possible that the problem isn't with Vista, its just a coincidence that the problem is appearing on that customer's computer. The problem in that case would be that the dynamic string that is unique on that computer contains a reserved XAML/Markup character. Make sure that you are escaping your text that will be displayed before adding it to your markup string. See this post:

https://forum.codejock.com/forum_posts.asp?TID=10865 - https://forum.codejock.com/forum_posts.asp?TID=10865


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Oleg
Date Posted: 06 May 2009 at 12:51am

Hi,

How MessageBar in our RibbonSample looks ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: chrisABC
Date Posted: 06 May 2009 at 3:15am
I bet you are correct. Thank you.

The text being displayed is the user Company Name, and I guess they have used < > or & in their name.

I have now escaped those chrs and expect that to solve the problem.   (I found that chrs ' " ? did not seem to upset the XML)

As often the case, I did not see the answer because I was looking in the wrong place.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: chrisABC
Date Posted: 06 May 2009 at 3:16am
Thank you. But now solved (I hope)

-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Aaron
Date Posted: 06 May 2009 at 3:43am
Hi,
 
It would be nice if we know which characters are allowed and which aren't... See post https://forum.codejock.com/forum_posts.asp?TID=13349 - https://forum.codejock.com/forum_posts.asp?TID=13349  (where Jason (jpbro) explains which characters aren't allowed in Markup string).
 
To support team: Please give us a complete list of escape characters.
 
Thank you


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: jpbro
Date Posted: 06 May 2009 at 2:45pm
Glad to help Chris, and I hope my advice solved the problem.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Oleg
Date Posted: 07 May 2009 at 1:02am

Hi,

There only '>' '<' that used for XML brackets can lead to such problem.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: chrisABC
Date Posted: 07 May 2009 at 3:32am
And also the "&" character

-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net