Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Pane Move&Size locking
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane Move&Size locking

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Pane Move&Size locking
    Posted: 16 August 2004 at 2:56am
Hello,

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

  Jimmy

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: 16 August 2004 at 11:55am

1. CXTPDockingPaneManager::LockSplitters

 

2. pToolBar->EnableDocking.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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

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: 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
Back to Top
developer View Drop Down
Newbie
Newbie


Joined: 05 August 2004
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote developer Quote  Post ReplyReply Direct Link To This Post 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.
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: 19 August 2004 at 1:17am
Don't use this code
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
developer View Drop Down
Newbie
Newbie


Joined: 05 August 2004
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote developer Quote  Post ReplyReply Direct Link To This Post 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.

Edited by developer
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.172 seconds.