Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Chart Control
  New Posts New Posts RSS Feed - TextWrapping='Wrap' has no effect in Markup Titles
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TextWrapping='Wrap' has no effect in Markup Titles

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: TextWrapping='Wrap' has no effect in Markup Titles
    Posted: 22 March 2011 at 4:39pm
It seems that simple Markup works for the chart Titles. <TextBlock>, <StackPanel>, <Bold> etc.
But if a very long text is entered <TextBlock TextWrapping='Wrap'> has no effect.
 
cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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: 23 March 2011 at 4:55am
Hi,

Yes, when Title calculate width of text, it doesn't try to fit in width of screen.

As workaround you can manually set what maxSize you need for title:

<TextBlock MaxWidth="120" TextWrapping='Wrap'><Bold>Chart Control</Bold> <Run>supports</Run> <Run Foreground='Green'>Titles</Run> </TextBlock>

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2011 at 5:10am
I cannot see any reason for not adjusting the size of the titles to the size of the chart control window. I think you should consider making a fix for that, it would be much more logical.
 
It would also be nice if it was possible to position the titles more freely, using a start x.y and a width and height?
 
cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2011 at 5:27am
Another thing that would be extremely useful for me, is to be able to add e.g. markup buttons. Now markup buttons appear in the top left corner always. and I don't think that I can set up and get delegate events from them?
 
-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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: 05 April 2011 at 4:07am
Hi,

Yes, Markup Events are not supported for Chart
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.203 seconds.