SOLVED -- MessageBar markup doesn't work in Vista |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
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
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, How MessageBar in our RibbonSample looks ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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 (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.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, There only '>' '<' that used for XML brackets can lead to such problem.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
And also the "&" character
|
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
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 |