Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - markup in MessageBar object.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

markup in MessageBar object.

 Post Reply Post Reply
Author
Message
Vycheslav View Drop Down
Groupie
Groupie


Joined: 11 July 2008
Location: Russian Federation
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vycheslav Quote  Post ReplyReply Direct Link To This Post Topic: markup in MessageBar object.
    Posted: 29 December 2017 at 4:21am
MarkUp context does not support Unicode character.
CodeJock version 18.2
Back to Top
Vycheslav View Drop Down
Groupie
Groupie


Joined: 11 July 2008
Location: Russian Federation
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vycheslav Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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 this topic.
Also you should use Unicode OCX.
I have tried your example with  C# RibbonSample and MessageBar show  "Тру ля-ля".

Regards,
 Oleksandr Lebed
Back to Top
Vycheslav View Drop Down
Groupie
Groupie


Joined: 11 July 2008
Location: Russian Federation
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vycheslav Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Vycheslav View Drop Down
Groupie
Groupie


Joined: 11 July 2008
Location: Russian Federation
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vycheslav Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Vycheslav View Drop Down
Groupie
Groupie


Joined: 11 July 2008
Location: Russian Federation
Status: Offline
Points: 44
Post Options Post Options   Thanks (1) Thanks(1)   Quote Vycheslav Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2019 at 8:19am
All my problem resolve adding standard XML header. ...encoding='Windows-1251'...
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.180 seconds.