Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to restrict docking locations?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to restrict docking locations?

 Post Reply Post Reply
Author
Message
turbowagon View Drop Down
Newbie
Newbie


Joined: 28 June 2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote turbowagon Quote  Post ReplyReply Direct Link To This Post Topic: How to restrict docking locations?
    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?)

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Agent 007 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 April 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Agent 007 Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 8:45am
The PaneAction sample is not available in ActiveX version for the docking Panes.
Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.