![]() |
How arrange docking panes in only 1 line? |
Post Reply ![]() |
Author | |
kangcorn ![]() Newbie ![]() Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() Posted: 07 December 2005 at 4:21am |
How do you arrange docking panes in only 1 line? sorry. ** Xtreme Toolkit Pro 9.8 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
CXTPDockingPane1* pPane= m_paneManager.FindPane(ID_1), m_paneManager.DockPane(pPane, xtpPamneDockLeft, NULL); and for all other pane: m_paneManager.DockPane(m_paneManager.FindPane(ID_2), xtpPaneDockTop, pPane); m_paneManager.DockPane(m_paneManager.FindPane(ID_3), xtpPaneDockTop, pPane); m_paneManager.DockPane(m_paneManager.FindPane(ID_4), xtpPaneDockTop, pPane); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kangcorn ![]() Newbie ![]() Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
thank you. your reply. That I wish is to limit docking by user. When user does docking in floating state or drag and drop, it wants to become by one line. Is there method?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
I don't understand :( You want to prevent docking to top/right/bottom? and allow only to dock to left? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kangcorn ![]() Newbie ![]() Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
It sees and solved pane actions sample that dock only left. ^^~ |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Ok, I see now. You can catch XTP_DPN_ACTIONevent in OnDockingPaneNotify handler and cancel soem actions:
if (wParam == XTP_DPN_ACTION) if (pAction->action == xtpPaneActionDocking && pAction->pDockContainer && pAction->pDockContainer->GetType() == xtpPaneTypeTabbedContainer) if (((directionPane == xtpPaneDockBottom) || (directionPane == xtpPaneDockTop)) && if (((directionPane == xtpPaneDockLeft) || (directionPane == xtpPaneDockRight)) && if (pAction->action == xtpPaneActionDocking && (pAction->pDockContainer == m_paneManager.GetTopPane() || } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kangcorn ![]() Newbie ![]() Joined: 02 December 2005 Location: Korea, South Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
thanks oleg. ^^* There is 1 problem. Only 1 pane docks in docking pane's case that several pane has attached. Remainder panes do not dock again in situation that 1 pane has docked. I am sorry, but ask reply again. Thank you. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Didn't you want it? You asked to prevent dock to left if another panes was docked on left side... |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |