Different tab positions? |
Post Reply |
Author | |
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
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. |
|
xtfj
Newbie Joined: 03 June 2009 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
I meet this problem too.
Can someone help us?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |