Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Scrolling problem using xtpTabLayoutFixed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Scrolling problem using xtpTabLayoutFixed

 Post Reply Post Reply
Author
Message
mrmathis View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 May 2007
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrmathis Quote  Post ReplyReply Direct Link To This Post Topic: Scrolling problem using xtpTabLayoutFixed
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 2:07am
Hi,
 
Modify some our sample with all your tweaks and send to support@codejock.com
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.094 seconds.