![]()  | 
 
Pane that initially floats.... | 
 
    Post Reply  
   | 
  
| Author | |
   
   ddlittle  
   
   Senior Member  
   Joined: 19 February 2004 Location: United States Status: Offline Points: 132  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Pane that initially floats....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   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 05 September 2004 at 3:36am | 
 
| 
   
    You must Float it after create (not in XTP_DPN_SHOWWINDOW handler): CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane( m_paneManager.FloatPane(pwndPane2, CRect(10, 20, 400, 400));  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   ddlittle  
   
   Senior Member  
   Joined: 19 February 2004 Location: United States Status: Offline Points: 132  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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); Thanks! - David  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 10 September 2004 at 2:42am | 
 
| 
   
    bypass? See my sample. I create it floated and XTP_DPN_SHOWWINDOW is called. 
  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
    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  |