Print Page | Close Window

docking pane do NOT tab

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


Topic: docking pane do NOT tab
Posted By: DPDP
Subject: docking pane do NOT tab
Date Posted: 25 August 2005 at 2:10pm

Could someone answer my questions?

1.I need to add a docking pane NOT tabbing into other panes, and

do NOT allow other panes to tab in. Basically it is a stand alone pane to disable

xtpPaneTypeTabbedContainer type

2.And how to make it always on the top if it is floating over other panes.

 

 




Replies:
Posted By: DPDP
Date Posted: 25 August 2005 at 5:06pm

I think I know half the problem. The following code prevent the pane attaching to other pane. But I have not figured out how to prevent other panes attaching into the pane.

if (wParam == XTP_DPN_ACTION)
 {
  XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;

    if (pAction->action == xtpPaneActionAttaching)
  {
   if (pAction->pPane->GetID() == IDR_PANE_TEST_CTRL/*the pane I want to be stand alone*/)
   {
    pAction->bCancel = TRUE;
   }
  }

  return TRUE;
 }



Posted By: Oleg
Date Posted: 25 August 2005 at 11:45pm

Hello,

Some hints:

pAction->pDockContainer is Tabbed Container with docking pane

CXTPDockingPaneTabbedContainer::GetSelected() returns selected pane



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