Print Page | Close Window

markup in MessageBar object.

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=23533
Printed Date: 21 November 2024 at 1:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: markup in MessageBar object.
Posted By: Vycheslav
Subject: markup in MessageBar object.
Date Posted: 29 December 2017 at 4:21am
MarkUp context does not support Unicode character.
CodeJock version 18.2



Replies:
Posted By: Vycheslav
Date Posted: 25 May 2018 at 7:30am
Also CodeJock version 18.4 too.
Code:
CommandBars1.MessageBar.Message = "<StackPanel Orientation='Horizontal'>" & _
    "<TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'><Bold>" & _
    "Tru-la-la" & "</Bold></TextBlock></StackPanel>"

Work properly.
CommandBars1.MessageBar.Message = "<StackPanel Orientation='Horizontal'>" & _
    "<TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'><Bold>" & _
    "Тру ля-ля" & "</Bold></TextBlock></StackPanel>"

Does not work properly.


Posted By: olebed
Date Posted: 07 June 2018 at 10:47am
Hello Vycheslav,

Note that VB6.0 IDE editor don't support Unicode. You need to load this markup as external file.
See  http://forum.codejock.com/forum_posts.asp?TID=23554&KW=markup+font&PID=76532&title=solved-hebrew-symbols-while-using-enablemarkup#76532" rel="nofollow - this topic .
Also you should use Unicode OCX.
I have tried your example with  C# RibbonSample and MessageBar show  "Тру ля-ля".

Regards,
 Oleksandr Lebed


Posted By: Vycheslav
Date Posted: 08 June 2018 at 3:53am
Really? But version 16 drawing this text properly.
Code:
MarkupLabel1.Caption = "<StackPanel Orientation='Horizontal'>" & _
                    "<TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'><Bold>" & _
                    "Тру ля-ля" & "</Bold></TextBlock></StackPanel>"
also work properly...
MarkupLabel version 18. With VB 6.0.
Visual Studio 2017. VB Net. MessageBar drawing this text not properly.

This is bug.

What else do you need to stop this useless discussion?
And start troubleshooting your bugs?


Posted By: olebed
Date Posted: 08 June 2018 at 11:01am
I need to turn on my third eye to know your programming language and version of VS and version of Windows and and and and

Please make ticket on support site with detailed description and sample application. The problem will be addressed according to its priority.


Posted By: Vycheslav
Date Posted: 09 June 2018 at 4:34am
Ok.
Operation systems: MS Windows 7 or later (developer or client), MS Server 2008 or later (client only).
Development environments: Visual Studio 6, Visual Studio 2017.
Programming languages: VB6, C++ (VS 6), VB Net, C# and VB Script.
The MessageBar object has been tested in DE and RunTime on the VB6, VB Net, C#; in RunTime on VB Script.
Result: object does not support unicode characters in markup expressions.


Posted By: Vycheslav
Date Posted: 01 April 2019 at 8:19am
All my problem resolve adding standard XML header. ...encoding='Windows-1251'...



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