Print Page | Close Window

CXTPPopupControl Theme Support

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=8172
Printed Date: 13 November 2025 at 7:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPopupControl Theme Support
Posted By: terrym
Subject: CXTPPopupControl Theme Support
Date Posted: 26 September 2007 at 11:09am

m_pActivePopup->SetTheme( xtpPopupThemeOffice2003 );

is it possible to also set the theme of a

CXTPPopupControl to the same colours as used by Black, Blue, Aqua and Silver ??? Is this built in, if not how do custom themes work for this control

Any help appreciated


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 27 September 2007 at 1:13am
Hello,
 
You can add big Rectangle item to fit whole popup with theme color
 
clrRibbonFace = XTPOffice2007Images()->GetImageColor(_T("Ribbon"), _T("RibbonFace"));


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


Posted By: terrym
Date Posted: 27 September 2007 at 12:30pm

Where would you say it is best to do this please ?



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 27 September 2007 at 2:51pm
Hello,
Guess before you add items to popup...


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


Posted By: terrym
Date Posted: 02 October 2007 at 4:15am
Can you please show example of clrRibbonFace above changing back colour of a CXTPopupControl, we use the 2003 style right now but we want it to show Blue, Aqua, Silver etc.
 
Not sure how doing what you said would change the colour anywhere


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 02 October 2007 at 5:48am
 
Just add in our sample
 
void CPopupControlDemoDlg::SetOffice2003Theme()
{
 m_pActivePopup->RemoveAllItems();
 COLORREF clrRibbonFace = XTPOffice2007Images()->GetImageColor(_T("Ribbon"), _T("RibbonFace"));
 COLORREF clrBorder = XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("MenuPopupBorder"));
 m_pActivePopup->AddItem(new CXTPPopupItem(CRect(0, 0, 329, 74), 0, clrRibbonFace, clrBorder));

...


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


Posted By: terrym
Date Posted: 02 October 2007 at 6:19am
Perfection, works a treat
 
Cheers Oleg


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: terrym
Date Posted: 02 October 2007 at 6:24am
Except it paints the whole background so the cool drag bar :( is no longer shown, will you be adding themed support to popup controls in 11.2.1 ???


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 03 October 2007 at 2:20am
Yes, added.

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


Posted By: terrym
Date Posted: 03 October 2007 at 5:38am

Excellent, look forward to 11.2.1, any ideas of release schedule



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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