Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Lock tab position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Lock tab position

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


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Topic: Lock tab position
    Posted: 17 May 2006 at 9:19pm

I was writing because I was curious if there was any way to lock the order of the panes in my DockingPaneManager.  I have them locked currently so I can't drag & drop windows (as per the specs I need to do this), but I need to also make it so that they are lockable.  Is there a way to do this? and I have version 9.70... is that available in that version?

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: 18 May 2006 at 9:18am

hI,

Afraid in 9.70 it was not available.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2006 at 11:49am

Which version do I need to be able to lock tab movement?

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 May 2006 at 4:31pm
See Actions sample. You can catch action TabDetaching.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2006 at 6:07pm

I couldn't find where you were talking about...

The only of use I can find is where it says everywhere in the code m_MTIClientWnd.SetAllowReorder( BOOL allowreorder )

How do I get access to set that?  I can't figure out how to access that method.  I've tried things similar to the samples to no avail.  Do I have to inherit something in my class?

I just need to be able to call CXTPTabManager::SetAllowReorder on my docking pane manager to disable the tab movement.

Back to Top
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2006 at 5:03pm

Anyone know a way to prevent tabs from being moved left & right ?  I don't want them to be reordered among other tabs.

 

And does anyone know a working way to get access to CXTPTabManager::SetAllowReorder() from the docking pane manager?

The tutorials use GetParent(), but that does not return anything valid.

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: 24 May 2006 at 9:53am

Hmm, seems you right and there is no method instead of overriding container/catch WM_LBUTTONDOWN etc to prevent it.

For 10.2 we added simple xtpPaneActionDragging.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
guywmustang View Drop Down
Newbie
Newbie


Joined: 17 April 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote guywmustang Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2006 at 5:45pm

Okay, cool, there is a way to prevent it.  I'll just have to get our version upgraded at some point. 

so, the xtpPaneActionDragging is just for the tab sliding back & forth for the dockingpane?

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: 25 May 2006 at 12:33pm

Yes :)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.109 seconds.