Print Page | Close Window

Markup: Possible trimming bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16882
Printed Date: 19 April 2024 at 2:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup: Possible trimming bug
Posted By: znakeeye
Subject: Markup: Possible trimming bug
Date Posted: 26 June 2010 at 8:37am
XTP 13.4.
 
CharacterEllipsis trimming does not work inside auto-sized column! Try the following in MarkupPad and resize the main window:
 
<Border>
   <Grid>
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width='Auto'/>
      </Grid.ColumnDefinitions>
   <TextBlock TextTrimming='CharacterEllipsis' Grid.Column='1'>C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v13.4.0\Workspace\ToolkitPro\Release\vc100</TextBlock>
   </Grid>
</Border>


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: jpbro
Date Posted: 26 June 2010 at 8:57am
I believe it's because the Auto designation makes the column width fit the content width, even if that width is > the width of the Grid or Viewport.

See this example with a border, and notice that the right edge of the border is missing:





http://forum.codejock.com/forum_posts.asp?TID=16410 - I think that this is why we need the ability to define sizes as a % of the parent object width , but currently this is not possible.




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

Language: Visual Basic 6.0 SP6



Posted By: jpbro
Date Posted: 26 June 2010 at 9:17am
Ah! It looks like ColumnDefinitions support * for the Width property, so:


<Border>
   <Grid>
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width='*'/>
      </Grid.ColumnDefinitions>
   <TextBlock TextTrimming='CharacterEllipsis' Grid.Column='1'>C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v13.4.0\Workspace\ToolkitPro\Release\vc100</TextBlock>
   </Grid>
</Border>


Appears to do the trick





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

Language: Visual Basic 6.0 SP6



Posted By: znakeeye
Date Posted: 26 June 2010 at 10:17am
Thanks a lot!

-------------
PokerMemento - http://www.pokermemento.com/



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