TaskPanel Group Height |
Post Reply |
Author | |
Shajeer
Newbie Joined: 20 January 2006 Location: India Status: Offline Points: 16 |
Post Options
Thanks(0)
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 |
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
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.
|
|
ricyang
Newbie Joined: 26 August 2008 Location: China Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Hi, rdhd,
I also want to increase the caption heiggt of each group. Could you explain in detail?
Ric
|
|
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 |