Print Page | Close Window

How to make captionless docking pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=276
Printed Date: 12 December 2024 at 1:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to make captionless docking pane
Posted By: yamasaki
Subject: How to make captionless docking pane
Date Posted: 06 December 2003 at 3:33am

Is it possible to make captionless docking pane?

best regards,

yamasaki




Replies:
Posted By: Oleg
Date Posted: 09 December 2003 at 1:47am

Try this:

class CCustomTheme : public CXTPDockingPaneOfficeTheme

{

virtual void DrawCaption(CDC& dc,CXTPDockingPaneTabbedContainer* pPane, CRect rc)

{

}

virtual void AdjustClientRect(CXTPDockingPaneTabbedContainer* pPane, CRect& rect)

{

if (pPane->IsTabsVisible()) rect.bottom -= m_nTabsHeight;

}

};

...

...

...

GetDockingPaneManager()->SetCustomTheme(new CCustomTheme());

 

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ianp
Date Posted: 19 December 2003 at 12:14pm
is this possible in VB6?


Posted By: SuperMario
Date Posted: 20 October 2004 at 12:38pm
Yes, this is possible in vb6. 

It is possible to either show or hide ALL docking pane title bars.  You can not hide/show them on an individual basis.

DockingPaneManager.Options.ShowCaption = False


Posted By: bsharifi
Date Posted: 17 December 2004 at 4:20pm
When I try the above code, the caption bar at the top is removed, but so are my tabs.  Now, I can't see/change the selected tabs.  Help!


Posted By: bsharifi
Date Posted: 17 December 2004 at 4:48pm

I don't have the source code since I am evaluating the tool.  Therefore, I can only guess what I need to change.  Can someone help me who can use the source?  The example code of deriving from the CXTPDockingPaneOfficeTheme successfully removes the caption bar at the top of my docking panes but also stops drawing the tabs.  Does someone have a corrected version of the above code?

Thanks!



Posted By: mwest
Date Posted: 18 August 2005 at 10:52am
I think this post http://forum.codejock.com/forum_posts.asp?TID=927 - http://forum.codejock.com/forum_posts.asp?TID=927 addresses the same problem.



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