Scrolling problem using xtpTabLayoutFixed |
Post Reply |
Author | |
mrmathis
Senior Member Joined: 17 May 2007 Location: United States Status: Offline Points: 105 |
Post Options
Thanks(0)
Posted: 05 May 2008 at 5:48pm |
I am using xtpTabLayoutFixed along with some other tweaks to display icon-only tabs on my panes when they are docked together. If I create several panes the row of tabs does not scroll over to as expected to the icon of the selected tab. This is true whether I set the selection manually or allow the default selection to persist.
To see what I mean, edit the DynamicPanes sample as shown here:
void CMainFrame::OnManagerCreate3inwindow()
{ #if 0 CXTPDockingPane* pwndPaneForm = CreatePane(RUNTIME_CLASS(CSimpleForm), _T("Form %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneEdit = CreatePane(RUNTIME_CLASS(CEditView), _T("Edit %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneList = CreatePane(RUNTIME_CLASS(CSimpleListView), _T("List %i"), xtpPaneDockRight); m_paneManager.AttachPane(pwndPaneEdit, pwndPaneForm);
m_paneManager.AttachPane(pwndPaneList, pwndPaneForm); #else CXTPDockingPane* pwndPaneForm = CreatePane(RUNTIME_CLASS(CSimpleForm), _T("Form %i"), xtpPaneDockRight); if (CXTPDockingPaneTabbedContainer* pContainer = dynamic_cast<CXTPDockingPaneTabbedContainer*>(pwndPaneForm->GetContainer())) { pContainer->SetLayoutStyle(xtpTabLayoutFixed); } CXTPDockingPane* pwndPaneEdit = CreatePane(RUNTIME_CLASS(CEditView), _T("Edit %i"), xtpPaneDockRight);
CXTPDockingPane* pwndPaneList = CreatePane(RUNTIME_CLASS(CSimpleListView), _T("List %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneEdit1 = CreatePane(RUNTIME_CLASS(CEditView), _T("Edit1 %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneList1 = CreatePane(RUNTIME_CLASS(CSimpleListView), _T("List1 %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneEdit2 = CreatePane(RUNTIME_CLASS(CEditView), _T("Edit2 %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneList2 = CreatePane(RUNTIME_CLASS(CSimpleListView), _T("List2 %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneEdit3 = CreatePane(RUNTIME_CLASS(CEditView), _T("Edit3 %i"), xtpPaneDockRight); CXTPDockingPane* pwndPaneList3 = CreatePane(RUNTIME_CLASS(CSimpleListView), _T("List3 %i"), xtpPaneDockRight); m_paneManager.AttachPane(pwndPaneEdit, pwndPaneForm);
m_paneManager.AttachPane(pwndPaneList, pwndPaneForm); m_paneManager.AttachPane(pwndPaneEdit1, pwndPaneForm); m_paneManager.AttachPane(pwndPaneList1, pwndPaneForm); m_paneManager.AttachPane(pwndPaneEdit2, pwndPaneForm); m_paneManager.AttachPane(pwndPaneList2, pwndPaneForm); m_paneManager.AttachPane(pwndPaneEdit3, pwndPaneForm); m_paneManager.AttachPane(pwndPaneList3, pwndPaneForm); #endif } When I run "Create 3 in Window" the picture looks like this:
when I expected it to have scrolled over to the last-created tab. Here's the expected picture achieved by manual scrolling:
I've tried this in both 11.2.0 and 12.0 beta. Is there anything that can be done to circumvent or fix this problem?
|
|
--Mike
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |