[solved] Clipped text in TaskDialog |
Post Reply |
Author | |
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
Posted: 15 September 2016 at 5:08am |
Hi,
I use the latest XTP. When I use a CXTPTaskDialog with a verify (SetVerificationText) the text is clipped when the dialog is configured to use markup via EnableMarkup. The problem is independent from whether or not I wrap the verify text in a <TextBlock> or not. What helps is to add a few extra blanks to the end, so this seems to be one of the wrong width calculations again. Text should read: "Apply to all" |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
It is very very similar to this issue. I suppose you forgot make changes in code.
We expect version 17.3 with this fix in September. Regards, Oleksandr Lebed |
|
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
|
No, this patch (remove ceil) is already applied. It still clips the verify string. This is how the method looks in my patched code:
SIZE CXTPMarkupGdiPlusDeviceContext::MeasureString(LPCWSTR lpszText, int nCount) const { SIZE sz = { 0 }; RectF rc; RectF layoutRect(0, 0, 0.0f, 0.0f); if (Gdiplus::Ok == m_pGdiPlus->GdipMeasureString(GetGraphics(), lpszText, nCount, AccessFont(), &layoutRect, m_pGpStringFormat, &rc, 0, 0)) { sz.cx = static_cast<int>(rc.Width); sz.cy = static_cast<int>(rc.Height); } return sz; } |
|
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(1)
|
This problem seems to be fixed in the 17.3.
I don't could check all potential problem Task Dialogs yet, but so far things look shiny. Thanks! |
|
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 |