CXTPPopupControl Theme Support |
Post Reply |
Author | |
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Guess before you add items to popup...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
Perfection, works a treat
Cheers Oleg
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Yes, added.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |