Print Page | Close Window

Pane that initially floats....

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=1130
Printed Date: 21 May 2024 at 6:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane that initially floats....
Posted By: ddlittle
Subject: Pane that initially floats....
Date Posted: 02 September 2004 at 3:32pm

I want to create a pane that is initially floating.  When I call FloatPane() in the XTP_DPN_SHOWWINDOW handler, the pane does float, but the frame has already resized and shrunk the view.  The only way I can seem to get it to work is to Toggle it twice.

Any ideas?  Anybody?  This is driving me nuts....

 

- David




Replies:
Posted By: Oleg
Date Posted: 05 September 2004 at 3:36am

You must Float it after create (not in XTP_DPN_SHOWWINDOW handler):

CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane(
  IDR_PANE_PROPERTIES, CRect(0, 0,200, 120), dockBottomOf, pwndPane1);

 m_paneManager.FloatPane(pwndPane2, CRect(10, 20, 400, 400));



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


Posted By: ddlittle
Date Posted: 07 September 2004 at 5:43pm

Thanks... That makes the window float, but it also seems to bypass XTP_DPN_SHOWWINDOW, so its child is never attached.  When I tried to move the attach code immediately preceding the FloatPane call, the dialog creates, but attaches itself to the desktop or something.  anyway, whenever I move the now-floating pane, its content remains behind.  Here's the code:

 CXTPDockingPane* pPane3 = m_paneManager.CreatePane(IDR_EDITPIPESIZES,r,dockRightOf,NUL L);
 if(!m_pEditPipeSizes)
 {
    m_pEditPipeSizes = new CEditPipeSizes;
 }
 if(!m_pEditPipeSizes->GetSafeHwnd())
 {
    m_pEditPipeSizes->m_auxInput = auxInput; // do this before creating the window... you need it later for WM_INITDIALOG
  m_pEditPipeSizes->Create(MAKEINTRESOURCE(IDD_ EDITPIPESIZES),NULL);
  
 } 
 pPane3->Attach(m_pEditPipeSizes);
 
 m_paneManager.FloatPane(pPane3,r);
 return;

Thanks!

- David



Posted By: Oleg
Date Posted: 10 September 2004 at 2:42am

bypass?

See my sample. I create it floated and XTP_DPN_SHOWWINDOW is called.

 

https://forum.codejock.com/uploads/oleg/2004-09-10_024249_DockingFormView.zip - 2004-09-10_024249_DockingFormView.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