Print Page | Close Window

How to restrict docking locations?

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


Topic: How to restrict docking locations?
Posted By: turbowagon
Subject: How to restrict docking locations?
Date Posted: 26 July 2005 at 12:20pm

Is there a way to restrict the allowable docking locations for a docking pane?

(e.g., allow docking on top and bottom, but disallow docking on left and right?)




Replies:
Posted By: Oleg
Date Posted: 26 July 2005 at 3:39pm

See PaneAction sample.

Uncomment code

/*
  if (pAction->action == xtpPaneActionDocking)
  {
   if (pAction->pDockContainer->GetType() != xtpPaneTypeTabbedContainer && (pAction->dockDirection != xtpPaneDockLeft && pAction->dockDirection != xtpPaneDockRight))
   {
    pAction->bCancel = TRUE;
   }

  }*/

in the sample to allow dock on Left and on Right only



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


Posted By: Superpippo
Date Posted: 16 September 2005 at 12:31am

Where i can find PaneAction sample ? I can't see this sample in the installed sample of XtremeDocking activex.

If you attach it here you will be really kind.

 

Best regards.

 

 

 



-------------
SuperPippo


Posted By: Agent 007
Date Posted: 28 September 2005 at 8:45am
The PaneAction sample is not available in ActiveX version for the docking Panes.


Posted By: Superpippo
Date Posted: 28 September 2005 at 10:37am

 Bad News!

So i cannot restrict docking locations at all in activex ? Or you have not a sample to do it in activex ?

Can you be so nice to link the MFC code sample here ?

Thanks in advance

 

 

 



-------------
SuperPippo



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