Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - Vertical alignment of captions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Vertical alignment of captions

 Post Reply Post Reply
Author
Message
einert View Drop Down
Newbie
Newbie
Avatar

Joined: 22 December 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote einert Quote  Post ReplyReply Direct Link To This Post Topic: Vertical alignment of captions
    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.


Back to Top
einert View Drop Down
Newbie
Newbie
Avatar

Joined: 22 December 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote einert Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.