Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - I want to fix pane tab order
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I want to fix pane tab order

 Post Reply Post Reply
Author
Message
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post Topic: I want to fix pane tab order
    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

Back to Top
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 289
Post Options Post Options   Thanks (1) Thanks(1)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2024 at 4:56am
Hello,

Can I reproduce this problem with our sample?

Regards,
Artem Gontarenko
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 289
Post Options Post Options   Thanks (1) Thanks(1)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 289
Post Options Post Options   Thanks (1) Thanks(1)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2024 at 7:29am
Back to Top
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post 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.
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.125 seconds.