Print Page | Close Window

No caption when the pane docks

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=2923
Printed Date: 12 December 2024 at 3:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: No caption when the pane docks
Posted By: DPDP
Subject: No caption when the pane docks
Date Posted: 20 September 2005 at 3:16pm

Do anyone know how to make a pane without caption when the pane is docked? I mean a pane without a caption at all, not hide the caption text since I have many panes and want to save the space when they are docked.




Replies:
Posted By: Oleg
Date Posted: 26 September 2005 at 7:09am

Hi,

Try

m_paneManager.GetPaintManager()->m_bShowCaption = FALSE;



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


Posted By: DPDP
Date Posted: 26 September 2005 at 12:35pm

Thanks, the caption is not shown when I call

m_paneManager.GetPaintManager()->m_bShowCaption = FALSE;

However, it does not help. I lose the ability to move/float the pane once docked. Do I miss anything here? The previous docking pane tool I have have the function to move/float when it is docked.

 




Posted By: Oleg
Date Posted: 26 September 2005 at 1:03pm

You don't want caption but want to allow docking... How it must look?

also try:

m_paneManager.GetPaintManager()->m_bDrawSingleTab = TRUE ;

to draw single tabs.

and may be

m_paneManager.GetPaintManager()->GetTabPaintManager()-> ;SetPosition(xtpTabPositionTop);

to draw them at top.


 

 



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


Posted By: DPDP
Date Posted: 26 September 2005 at 1:19pm

The old tool from Stingray enables to move the pane when I press left mouse down in any empty place in the pane and can drag the pane to anywhere. I do not have to drag the caption to move. And I can double click the pane to make it floating. A Word doc file with a image how it looks like is http://forum.codejock.com/uploads/DPDP/2005-09-26_131559_DPDP.zip - 2005-09-26_131559_DPDP.zip  attached.

 



Posted By: DPDP
Date Posted: 29 September 2005 at 1:09pm

I tried the following three calls, it is almost achieve my requirements except when I float a pane, it has a caption and a single tab which is unacceptable. Then I try to set m_bDrawSingleTab = FALSE by catching the floating action. Unfortunately this attribute seems to apply all panes globally. When setting it to be false, an existing single docked pane lost the tab, and lost the drag and floating abilities. Any further sugguestion will be much appreciated.

1.m_paneManager.GetPaintManager()->m_bShowCaption = FALSE;

or SetOptions(xtpPaneNoCaption) when creating the pane.

2.m_paneManager.GetPaintManager()->m_bDrawSingleTab = TRUE ;

3.m_paneManager.GetPaintManager()->GetTabPaintManager()-

>SetPositionxtpTabPositionTop);

 



Posted By: Oleg
Date Posted: 30 September 2005 at 2:08am

See little sample:

http://forum.codejock.com/uploads/oleg/2005-09-30_020817_Sample.zip - 2005-09-30_020817_Sample.zip



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



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