![]() |
Too Many Panes |
Post Reply ![]() |
Author | ||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() Posted: 06 August 2006 at 6:38am |
|
Hi,
If I have too many panes docked to the bottom of my MDI application then there isn't enough room to draw all the text and I just lose text and / or panes. Is there an intelligent solution built into the pane manager when takes care of this situation? |
||
Simon HB9DRV
|
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
I see what I'm after in the PaneActions sample - but can't work out how it is enabled :-(
|
||
Simon HB9DRV
|
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
Bump - help please ?
|
||
Simon HB9DRV
|
||
![]() |
||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|
Hi,
You can change layout from xtpTabLayoutSizeToFit to xtpTabLayoutAutoSize. it will add scroll buttons.
See TabManager sample.
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
Hah - so simple, many thanks! |
||
Simon HB9DRV
|
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
Hi - having a brain problem here. Exactly how should I set this? I have tried m_paneManager.GetPaintManager()->GetTabPaintManager()->SetLayout(xtpTabLayoutAutoSize); without success. Must I call something afterwards? |
||
Simon HB9DRV
|
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
False alarm - I see it's in the Tab Manager sample - will look further after I take the dog for a walk.
|
||
Simon HB9DRV
|
||
![]() |
||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|
Hi,
Yes, m_paneManager.GetPaintManager()->GetTabPaintManager()->SetLayout(xtpTabLayoutAutoSize);
must work... Just be sure you call it after you set theme for dockingpanes. |
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
Somehow the layout is being ignored :-( |
||
Simon HB9DRV
|
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
OK - I see why it works in the TabManager example, this is because you have just one group - you specify the neighbour when creating the panes, I don't.
So - how do I dynamically add my panes into the single group? I have maybe 12 different panes, created on demand, not st startup. For the CreatePane function I need to specify a neighbour, currently I enter NULL. Does this make sense? I have modified the TabManager example so that this doesn't work - simply by not supplying the neighbour argument and not using AttachPane(). How do I find the value to use as the neighbour? --- Or - here's what I really want - I have all my panes which the user can hide as required. Try modifying the TabManager code: CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane( IDR_PANE1, CRect(0, 0,200, 120), xtpPaneDockLeft); CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane( IDR_PANE2, CRect(0, 0,200, 120), xtpPaneDockLeft); CXTPDockingPane* pwndPane3 = m_paneManager.CreatePane( IDR_PANE3, CRect(0, 0,200, 120), xtpPaneDockLeft); // m_paneManager.AttachPane(pwndPane2, pwndPane1); // m_paneManager.AttachPane(pwndPane3, pwndPane1); Hide these - then try getting the tabs Compressed - or getting any layout style applied :-( |
||
Simon HB9DRV
|
||
![]() |
||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|
Hi,
So you mean tabs in AutoHide panel not in Tabbed Containers?
Unfortunatelly in this case there is no method :(
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
OK - guess I found something that's missing :-) |
||
Simon HB9DRV
|
||
![]() |
||
Dmitry ![]() Groupie ![]() Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
![]() ![]() ![]() ![]() ![]() |
|
Hi,
Has there been any news on this subject? We would also like to have tabs in AutoHide panel scrollable. Regards, Dmitry |
||
![]() |
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 |