Print Page | Close Window

TaskPanel Group Height

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=11388
Printed Date: 21 November 2024 at 11:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TaskPanel Group Height
Posted By: Shajeer
Subject: TaskPanel Group Height
Date Posted: 11 July 2008 at 12:50am
Hi

I am using CXTPTaskPanel and I want to increase the caption height of each group and I want make the caption to be center aligned.

Please advice.

Thanks
Shajeer




Replies:
Posted By: rdhd
Date Posted: 14 July 2008 at 12:41pm
We derive a custom theme from CXTPTaskPanelExplorerThemePlain. The task panel samples contain a custom theme (I believe that is where we started ours from).
 
Override DrawGroupCaption. The routine gets in a flag that indicates the caption is being drawn or just measured. You can return the height you want when called to measure. When called to draw, you can draw the text however you like. The CDC is passed in and make sure you use DT_CENTER instead of DT_LEFT. We have calls to DrawText in both the measure and display sections of the method. We use DT_LEFT  in both cases and I assume you would want to use DT_CENTER in both cases.
 
 


Posted By: ricyang
Date Posted: 26 August 2008 at 8:51pm
Hi, rdhd,
 
I also want to increase the caption heiggt of each group. Could you explain in detail?
 
Ric



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