Print Page | Close Window

Different tab positions?

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=11618
Printed Date: 16 September 2024 at 4:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Different tab positions?
Posted By: Osiris
Subject: Different tab positions?
Date Posted: 28 July 2008 at 11:17am
Hi,

with GetPaintManager()->GetTabPaintManager()->SetPosition(...) it is possible to change the postion of the tabs of tabbed docking panes. But this setting always effects all panes aof the application - any tabbed panes show the tabs on the same side.
Is it possible to have different tab postions for different tab containers (for exaple the panes docked to the left side of the main frame window show their tabs on the left side and the panes docked to the bottom of the application show their tabs on the bottom)?

Thanks in advance
Stefan



Replies:
Posted By: Oleg
Date Posted: 29 July 2008 at 1:57am
Hi,
 
Yes, its possible.
 
Create custom TabbedContainer class (see Samples\DockingPane\DockingContainers sample) and override XTPTabPosition GetPosition() const
method.


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


Posted By: Osiris
Date Posted: 30 July 2008 at 2:45am
Hi Oleg,

thank you for your answer...it works for intialization.
But why do the panes 'forget' the tab position after the whole container has been tabbed for examplr to the top and then back to the side. After that the tabs are always at the bottom, but I never change the tab position member of the derived panetabbed container?
Do you have any ideas how to fix this?
I also tried to set the tab postion of a pane after I received an XTP_DPN_ACTION event with a xtpPaneActionDocked action so that the tabs are always at the outer border of the main frame, no matter where the panes are docked to. But if I do so, the application crashes after several docking actions.

Thanks in advance
Stefan


Posted By: Oleg
Date Posted: 30 July 2008 at 8:12am
Hi,
I don't know what you did in code so have no idea how you can fix it.


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


Posted By: Osiris
Date Posted: 30 July 2008 at 8:23am
Hi Oleg,

I derived the CXTPDockingPaneTabbedContainer class and added a SetTabPosition() method and a tab position member which is returned on XTPTabPosition GetPosition().

On intialization of the docking panes I do the following:

CXTPDockingPane* pwndPane = m_paneManager.CreatePane(...);
( (CDockingPaneTabbedContainerDerived*)pwndPane->GetContainer() )->SetTabPosition( xtpTabPositionLeft );

I set this tab position member to each docking pane.
 


Posted By: xtfj
Date Posted: 12 June 2009 at 5:31am
I meet this problem too.
Can someone help us?
 



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