Print Page | Close Window

Scrolling problem using xtpTabLayoutFixed

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=10510
Printed Date: 13 May 2025 at 1:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Scrolling problem using xtpTabLayoutFixed
Posted By: mrmathis
Subject: Scrolling problem using xtpTabLayoutFixed
Date 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



Replies:
Posted By: Oleg
Date Posted: 06 May 2008 at 2:07am
Hi,
 
Modify some our sample with all your tweaks and send to mailto:support@codejock.com - support@codejock.com
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net