Print Page | Close Window

Vertical alignment of captions

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=19348
Printed Date: 21 November 2024 at 8:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Vertical alignment of captions
Posted By: einert
Subject: Vertical alignment of captions
Date Posted: 22 December 2011 at 8:00am
We are using a TaskPanel with the xtpTaskPanelThemeListViewOffice2003 style, and have some issues with the vertical alignment of icon captions.  Captions are top aligned, rather than vertically centered with regards to the icon.

Do I have to create a custom theme to get the desired behavior (see illustration)?  If this is a FAQ, please point me in the right direction.





Replies:
Posted By: einert
Date Posted: 04 January 2012 at 5:18am
Environment details added in sig.



-------------
Product: Xtreme ToolkitPro (MFC) version 13.2.1
Platform: Windows 7 (64 bit)
Language: Visual C++ 9.0 (VS2008)


Posted By: Algae
Date Posted: 27 May 2013 at 2:48pm
I ran into this too.

Visible caption alignment is very important for a UI control, yet this has gone unanswered since 2011.

I'm not sure any of the developers scan the forums for issues any longer. Perhaps a junior person could be giving the forum questions a quick scan to summarize questions/bugs to address later.

At any rate, the only thing that sort of works is to find the constructor:

CXTPTaskPanelPaintManager::CXTPTaskPanelPaintManager()

In XTPTaskPanelPaintManager.cpp

Change this:
m_nItemTextFormat = DT_WORDBREAK | DT_NOPREFIX;

To this:
m_nItemTextFormat = DT_SINGLELINE | DT_VCENTER | DT_NOPREFIX;

*Note that this removes multiline capability. DT_VCENTER does not work with DT_WORDBREAK!




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