Print Page | Close Window

BUG: CXTPSplitterWnd - can't move splitter!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=19424
Printed Date: 21 November 2024 at 3:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: CXTPSplitterWnd - can't move splitter!
Posted By: mgampi
Subject: BUG: CXTPSplitterWnd - can't move splitter!
Date Posted: 20 January 2012 at 9:07am
Hi;

I found a bug that can be reproduced with the SplitterWindow sample of the toolkit. To reproduce add another CXTPSplitterWnd to CMainFrame class and then modify the CMainFrame::OnCreateClient() function as shown below:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
{
    // Create the splitter window with two columns
    if (!m_wndSplitter.CreateStatic(this, 1, 2))
    {
        TRACE0("Failed to create splitter window\n");
        return FALSE;
    }

    Splitter2_.CreateStatic(&m_wndSplitter, 2, 1, WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 0));

    if (!m_wndSplitter.CreateView(0,1, RUNTIME_CLASS(CView1), CSize(0, 0), pContext))
    {
        TRACE0("Failed to create CView1\n");
        return FALSE;
    }

    if (!Splitter2_.CreateView(0,0, RUNTIME_CLASS(CView2), CSize(0, 0), pContext))
    {
        TRACE0("Failed to create CView2\n");
        return FALSE;
    }

    if (!Splitter2_.CreateView(1,0, RUNTIME_CLASS(CView3), CSize(0, 0), pContext))
    {
        TRACE0("Failed to create CView3\n");
        return FALSE;
    }

    //if (!m_wndSplitter.CreateView(1,1, RUNTIME_CLASS(CView4),
    //    CSize(0, 0), pContext))
    //{
    //    TRACE0("Failed to create CView4\n");
    //    return FALSE;
    //}

    CRect r;
    GetClientRect(&r);

    m_wndSplitter.SetRowInfo( 0, r.Height()/2, 0 );
    m_wndSplitter.SetColumnInfo( 0, r.Width()/2, 0 );

    return TRUE;
}
Now try to move the verticla splitter. I can't - it only judders!
Has anyone ever found a solution for this issue?


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: mgampi
Date Posted: 25 September 2017 at 8:48am
Hi!

I just recognized that this is still not fixed in 18.0.1!
AngryAngry
AngryAngry


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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