![]() |
CXTPDockingPane restricted docking |
Post Reply
|
| Author | |
asparagusx
Groupie
Joined: 06 February 2007 Status: Offline Points: 57 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPDockingPane restricted dockingPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
asparagusx
Groupie
Joined: 06 February 2007 Status: Offline Points: 57 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 February 2007 at 12:30am |
Thanks - works a treat!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |