Print Page | Close Window

Lock tab position

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=4236
Printed Date: 15 May 2024 at 8:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Lock tab position
Posted By: guywmustang
Subject: Lock tab position
Date 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!




Replies:
Posted By: Oleg
Date Posted: 18 May 2006 at 9:18am

hI,

Afraid in 9.70 it was not available.



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


Posted By: guywmustang
Date Posted: 18 May 2006 at 11:49am

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



Posted By: Oleg
Date Posted: 18 May 2006 at 4:31pm
See Actions sample. You can catch action TabDetaching.

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


Posted By: guywmustang
Date 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.



Posted By: guywmustang
Date 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.



Posted By: Oleg
Date 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


Posted By: guywmustang
Date 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?



Posted By: Oleg
Date Posted: 25 May 2006 at 12:33pm

Yes :)



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



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