Print Page | Close Window

Pane Move&Size locking

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=1063
Printed Date: 10 May 2024 at 1:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane Move&Size locking
Posted By: jimmy
Subject: Pane Move&Size locking
Date Posted: 16 August 2004 at 2:56am
Hello,

Is there a function to lock
1) Pane moving, sizeing & docking
2) Toolbar moving

  Jimmy




Replies:
Posted By: Oleg
Date Posted: 16 August 2004 at 11:55am

1. CXTPDockingPaneManager::LockSplitters

 

2. pToolBar->EnableDocking.



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


Posted By: jimmy
Date Posted: 18 August 2004 at 2:18am
LockSplitter only lock sizing, but i will also lock moving a pane to another panecontainer. Or docking a pane on a other position.

    Jimmy



Posted By: Oleg
Date Posted: 18 August 2004 at 2:59pm

LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{

 if (wParam == XTP_DPN_ACTION)
 {
  XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;

  pAction->bCancel = TRUE;

  return TRUE;

}

return FALSE;

}



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


Posted By: developer
Date Posted: 18 August 2004 at 5:43pm
There is a bug with the new toolkit and this feature. If I use the code above but have

m_paneManager.SetShowDockingContextStickers(TRUE);

Then you can still dock. Thanks.


Posted By: Oleg
Date Posted: 19 August 2004 at 1:17am
Don't use this code

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


Posted By: developer
Date Posted: 19 August 2004 at 9:29am
HAHAHA gee thanks. What code would you recommend then? I would like the same effect. When the splitters are locked I would like the entire layout to be locked, meaning that you can't float the panes. (closing would be ok).. Thanks.



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