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
|