![]() |
Vertical alignment of captions |
Post Reply ![]() |
Author | |
Algae ![]() Senior Member ![]() ![]() Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
![]() ![]() ![]() ![]() ![]() 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! |
|
![]() |
|
einert ![]() Newbie ![]() ![]() Joined: 22 December 2011 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Environment details added in sig.
|
|
Product: Xtreme ToolkitPro (MFC) version 13.2.1
Platform: Windows 7 (64 bit) Language: Visual C++ 9.0 (VS2008) |
|
![]() |
|
einert ![]() Newbie ![]() ![]() Joined: 22 December 2011 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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. ![]() |
|
![]() |
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 |