![]() |
Problem with markup and column width |
Post Reply ![]() |
Author | |
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() Posted: 16 September 2009 at 4:33pm |
Hi;
I'm using markup to draw graphics combined with text in a report column. So far so good, but when the column width is smaller than the text length, no ellipsis is drawn at the end. How can I handle this (see picture)? ![]() |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() |
Try using the TextTrimming='CharacterEllipsis' attribute for the TextBlock.
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Thanks! After changing it to <TextBlock Width='100' TextTrimming='CharacterEllipsis'>xxx</TextBlock> it works. BTW "TextTrimming" isn't listed in Markup Readme.txt. So I didn't know this. |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() |
Glad to help! The documentation is certainly lacking in some areas. I usually just search Google for the element that I am working with and see what MS XAML can handle...sometimes it has (fortunately) been implemented in CJ XAML as well (as was the case with TextTrimming).
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi;
I have a further question about XAML TextTrimming... I'm using this XAML-String
I set the width of the text block explicitely in XAML, the report control measures the required with for showing the whole content wrong when double clicking onto the corresponding column divider. This results in a 'fixed' column width. Which is not what I want... How can I solve this? Any ideas? |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi;
I found a strange bug in XTPReportControl version 13.2: When resizing columns that are only partly visible (left or right border is outside the report control borders) the opposite column divider is drawn outside the report control bounding rectangle. Additional the dragging column divider can be moved and dropped outside the bounding rectangle too! I've never seen such 'feature' in any other control... To show the problem I've uploaded a small MP4 video... uploads/20091029_193337_ReportCtrl.rar |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi;
I changed the way I handle the markup part to use the new GetPaintManager()->m_bForceDynamicMarkupForCell=TRUE property introduced in version 13.2 - BTW I suggest to hide member variables and only provide Get/Set functions - but this results in a new problem. Now when double clicking onto the right column divider to size the column to best fit the content, the column is resized to about 1000 px. All I did was setting above flag and removing the last three lines of code I inserted into my last post. Perhaps this is a BUG in report control! |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
No ideas?
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |