Print Page | Close Window

Transparent border with themed CXTPControlCustom

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=19827
Printed Date: 24 November 2024 at 8:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Transparent border with themed CXTPControlCustom
Posted By: DoubleHammer
Subject: Transparent border with themed CXTPControlCustom
Date Posted: 01 June 2012 at 4:41am

Using Xtreme ToolkitProV13.4.2,  I have added a CXTPControlCustom control containing a CXTDateTimeCtrl control, to a CXTPCommandBar . However, when using certain themes, the CXTDateTimeCtrl control has a transparent border as shown below. Is there a work around for this, as I still want to use the same theme.



// Code

CXTPCommandBars* pCommandBars = GetParentFrame()->GetCommandBars();

// Add the date restrictions command bar

pCommandBars->Add(_T("Report Date Options"), xtpBarTop); 

// Add some other controls…. 

// Create a CXTDateTimeCtrl control

if (!m_dateFrom.Create(WS_TABSTOP | WS_CHILD | WS_VISIBLE | WS_BORDER,

            CRect(0, 0, 100, 22), this, ID_DATE_FROM))

{

return FALSE;

}

     

// Create a new CXTPControlCustom* control from the m_date control.

CXTPControlCustom* pControlDateFrom = CXTPControlCustom::CreateControlCustom(&m_dateFrom);

m_pControl = (CXTPControlCustom*)pCommandBar->GetControls()->Add(pControlDateFrom, ID_DATE_FROM);

pControlDateFrom->SetFlags(xtpFlagManualUpdate);




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