Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - TextBlock + PathCompactPath?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TextBlock + PathCompactPath?

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: TextBlock + PathCompactPath?
    Posted: 26 June 2010 at 8:25am
XTP 13.4.
 
<TextBlock>C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v13.4.0\Workspace\ToolkitPro\Release\vc100</TextBlock>
 
If you want to display this textblock in a control with insufficient width, it makes sense to use PathCompactPath to compress it a bit. I know System.Windows.TextTrimming does not define such a trim mode. Can this be accomplished somehow using markup? If not, consider it a feature request :)
 
Edit: Looks like people already found this flaw in WPF:
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2010 at 6:18am
No chance for an extension?
PokerMemento - http://www.pokermemento.com/
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: 02 July 2010 at 9:03am
I agree that TextTrimming='PathEllipsis' would be a useful extension.

I tried implementing the workaround as described at your link, but I couldn't get it working reliably with CJ markup (I never found a way to prevent the filename portion from moving too far to the right when the visible client area was really wide).

Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2010 at 9:49am
Just would like to chime in with my vote as well. Would like to see this added to the feature roadmap.
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.039 seconds.