Print Page | Close Window

CXTPDockingPane questions

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


Topic: CXTPDockingPane questions
Posted By: Irisz
Subject: CXTPDockingPane questions
Date Posted: 02 June 2004 at 9:13am

Hi,

I have 2 question regarding CXTPDockingPane:

1. Is there a way to remove the caption from a docking pane ?

2. Is there a way to prevent pane from floating ?




Replies:
Posted By: SuperMario
Date Posted: 02 June 2004 at 1:44pm
1.Yes
2.Yes


Posted By: Irisz
Date Posted: 03 June 2004 at 1:49am

1. How ???

2. How ???

 



Posted By: SuperMario
Date Posted: 03 June 2004 at 7:43am
    // Get a pointer to IDR_PANE1 and Remove Title.
    CXTPDockingPane* pPane = GetDockingPaneManager()->FindPane(IDR_PANE1);
    ASSERT(pPane);
    if (pPane) {
        pPane->SetTitle(_T(""));
    }
    
    // Get a pointer to IDR_PANE2 and set the title and prevent it from floating.
    pPane = GetDockingPaneManager()->FindPane(IDR_PANE2);
    ASSERT(pPane);
    if (pPane) {
        pPane->SetTitle(_T("Pane 2 - Not Floatable\nPane 2"));
        pPane->SetOptions(xtpPaneNoFloatable);
    }


Posted By: Oleg
Date Posted: 03 June 2004 at 7:50am

I knew you ask it :)

for 8.70 only:

1.

class CCustomTheme :  public CXTPDockingPaneGripperedTheme
{
 void AdjustCaptionRect(CXTPDockingPaneTabbedContainer* pPane, CRect& rc)
 {
  // Do nothing.

 }
};

m_paneManager.SetCustomTheme(new CCustomTheme()); 

 

2.

pPane->SetOptions(xtpPaneNoFloatable);

ps. how user can float pane without caption?

 



-------------
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