Print Page | Close Window

CXTPControlGallery drawing bug!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5332
Printed Date: 14 May 2024 at 8:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlGallery drawing bug!
Posted By: znakeeye
Subject: CXTPControlGallery drawing bug!
Date Posted: 20 October 2006 at 10:58pm
Consider the RibbonSample, and change CMainFrame::OnCreateControl as below:
 
if (lpCreateControl->nID == ID_GALLERY_STYLESET)
{
    CXTPControlGallery* pControlGallery = new CXTPControlGallery();
    // pControlGallery->SetControlSize(CSize(200, 22 * 7 + 2));
    pControlGallery->SetControlSize(CSize(200, 300 * 7 + 2)); // Too big!
    pControlGallery->ShowLabels(TRUE);
    pControlGallery->SetItems(m_pItemsStyleSet);
    lpCreateControl->pControl = pControlGallery;
    return TRUE;
}
 
The items will not be displayed at all. A bug if you ask me. How do I fix it?



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