Print Page | Close Window

I want to fix pane tab order

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=24449
Printed Date: 23 November 2024 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I want to fix pane tab order
Posted By: aquaxys
Subject: I want to fix pane tab order
Date Posted: 08 January 2024 at 4:05am
I use cxtpdockingpane on the left in my program

there is pane tab ex>'a', 'b', 'c'

I got the report that

1. click the 'a' tab and showing(attach) the dockingpane
2. PINNING dockingpane
3. UNPINNING dockingpane
4. pane tab order is changed to 'b','c','a' ('a' move to the bottom)

I try to get to solution in sample files in codejock
but sample files is same to move to the bottom

How can I fix the pane tab order
or rearrange it




Replies:
Posted By: aquaxys
Date Posted: 19 January 2024 at 2:16am
a. hide pane 1
b. dockpane is appeared
c. pin dockpane
d. unpin dockpane
e. tab is added at the bottom 2
f. want to get it back to where it was



Posted By: agontarenko
Date Posted: 23 January 2024 at 4:56am
Hello,

Can I reproduce this problem with our sample?

Regards,
Artem Gontarenko


Posted By: agontarenko
Date Posted: 29 January 2024 at 7:29am
Hello,

I have reproduced described behavior. After Panel1 pin and unpin this panel moved to down.
Please test dock panes of MS Visual studio they works same.
This is by design.

Regards,
Artem Gontarenko


Posted By: agontarenko
Date Posted: 29 January 2024 at 7:29am


Posted By: aquaxys
Date Posted: 13 February 2024 at 9:45pm
I apologize for the late response. 
Actually, I waited for more than a week because the post was pending more than week. 
I gave up because it wasn't approved.

The thing is I want to change or fix tab order manually nevetheless is is DESIGN.

Is there a way to resolve it?
I reviewed CXTPTabManager, CXTPDockingPaneTabbedContainer.
But I can not figure it out.


Posted By: aquaxys
Date Posted: 13 February 2024 at 10:13pm
my final code is like as below

LRESULT myclass::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
        ...
else if(wParam == XTP_DPN_ACTION )
{
XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;

CXTPDockingPane* pPane = pAction->pPane;

if(pAction->action == xtpPaneActionUnpinned) 
{
XTPTabPosition tpa = pPane->GetDockingPaneManager()->GetPaintManager()->GetTabPaintManager()->GetPosition();

tpa result is xtpTabPositionBottom (=2) so I change it to the top

pPane->GetDockingPaneManager()->GetPaintManager()->GetTabPaintManager()->SetPosition(xtpTabPositionTop);


XTPTabPosition tpb = pPane->GetDockingPaneManager()->GetPaintManager()->GetTabPaintManager()->GetPosition();

tpb result is xtpTabPositionTop (=0)
but tab is still at the bottom


Posted By: aquaxys
Date Posted: 13 February 2024 at 10:18pm
For your information, my dockpane tab is located on the left from top to bottom. 

                        <- unpin dockingpain from 1tab
1tab |------------|-|
2tab |                 |
3tab |--------------|

2tab
3tab
1tab



Posted By: aquaxys
Date Posted: 13 February 2024 at 10:21pm
I replied first like as below and it is still pending
but I found that following replies posted without pending so I rewrite this reply

I apologize for the late response. 
Actually, I waited for more than a week because the post was pending more than week. 
I gave up because it wasn't approved.

The thing is I want to change or fix tab order manually nevetheless is is DESIGN.

Is there a way to resolve it?
I reviewed CXTPTabManager, CXTPDockingPaneTabbedContainer.
But I can not figure it out.



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