Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SOLVED -- MessageBar markup doesn't work in Vista
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED -- MessageBar markup doesn't work in Vista

 Post Reply Post Reply
Author
Message
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED -- MessageBar markup doesn't work in Vista
    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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

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: 06 May 2009 at 12:51am

Hi,

How MessageBar in our RibbonSample looks ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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 (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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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: 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
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
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.500 seconds.