Print Page | Close Window

Create Pane - Unwanted Space

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9131
Printed Date: 11 May 2024 at 2:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Create Pane - Unwanted Space
Posted By: Suyambu2002
Subject: Create Pane - Unwanted Space
Date Posted: 18 December 2007 at 5:05am

https://forum.codejock.com/uploads/20071218_050342_unwanted_space.zip - uploads/20071218_050342_unwanted_space.zip

Hi

Am trying to use CXTPDockingPaneManager in my SDI application.
When I use docking pane manager some unwanted space is available in the right corner of the view(after the splitter).  Am unable to resize the same till towards my MainFrame.
In MainFrame.cpp - OnCreate I have the following code...
----------------------------------------------------------------------------
CXTPDockingPane *pDocPaneTreeView = NULL;

m_XTPDocPaneManager.InstallDockingPanes ( this );

m_XTPDocPaneManager.SetClientMargin ( 0 );

m_XTPDocPaneManager.SetStickyFloatingFrames(TRUE);

m_XTPDocPaneManager.SetThemedFloatingFrames(TRUE);

// -- $TSMS$ -- Create the Tree View Pane.

//---------------------------------------------------------

pDocPaneTreeView = m_XTPDocPaneManager.CreatePane ( ID_DOC_PANE_TREE_VIEW, CRect ( 0, 0, 350, 100 ), xtpPaneDockLeft );

if ( NULL == pDocPaneTreeView )

{

TRACE0("Failed to left doc pane - tree view \n");

return -1; // fail to create

}

pDocPaneTreeView->AttachView ( this, RUNTIME_CLASS ( CLeadFinderTreeView ) );

pDocPaneTreeView->SetTitle ( "Folder View" );

pDocPaneTreeView->SetOptions ( xtpPaneNoCloseable | xtpPaneNoHideable | xtpPaneNoFloatable | xtpPaneNoDockable );

----------------------------------------------------------------------------

Find attached image for more information.
Can someone help me to resolve this.


-------------
Best Regards
Suyambu



Replies:
Posted By: Oleg
Date Posted: 18 December 2007 at 5:52am
hI,
 
Add  m_XTPDocPaneManager.HideClient(TRUE);


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


Posted By: Suyambu2002
Date Posted: 20 December 2007 at 5:10am

Hi Oleg

Fantastic.  Thanks a lot.
I thought i have to do handle OnSize to solve this issue.
Anyway Thank you very much.


-------------
Best Regards
Suyambu



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