Print Page | Close Window

CXTPDockingPane restricted docking

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=6336
Printed Date: 12 November 2025 at 5:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDockingPane restricted docking
Posted By: asparagusx
Subject: CXTPDockingPane restricted docking
Date Posted: 07 February 2007 at 3:59am
Just started implementing the library - looks great!
 
However I need some help.
 
I know that you can use EnableDocking for toolbars to allow/restrict where toolsbars can/cannot be docked, however I also want to do this for CXTPDockingPane(s) e.g. I only want a docking pane to be docked left or right or be floatable (as an example).
 
Any help will be appreciated!
 
Regards
 
Anton Heymann



Replies:
Posted By: Oleg
Date Posted: 07 February 2007 at 1:17pm
Hi,
 
Start from Samples\DockingPane\PaneActions  sample.
 
You need this code:
 
if (pAction->action == xtpPaneActionDocking)
  {
   if (pAction->pDockContainer->GetType() != xtpPaneTypeTabbedContainer && (pAction->dockDirection != xtpPaneDockLeft && pAction->dockDirection != xtpPaneDockRight))
   {
    pAction->bCancel = TRUE;
   }
  }


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


Posted By: asparagusx
Date Posted: 08 February 2007 at 12:30am
Thanks - works a treat!



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