Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPDockingPane restricted docking
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDockingPane restricted docking

 Post Reply Post Reply
Author
Message
asparagusx View Drop Down
Groupie
Groupie


Joined: 06 February 2007
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote asparagusx Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPane restricted docking
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
asparagusx View Drop Down
Groupie
Groupie


Joined: 06 February 2007
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote asparagusx Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 12:30am
Thanks - works a treat!
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.062 seconds.