Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Markup: Possible trimming bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup: Possible trimming bug

 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: Markup: Possible trimming bug
    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/
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1335
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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:





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

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1335
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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: 26 June 2010 at 10:17am
Thanks a lot!
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.