Print Page | Close Window

CButton or CXTButton's theme display error

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=11142
Printed Date: 14 May 2024 at 11:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CButton or CXTButton's theme display error
Posted By: littleameng
Subject: CButton or CXTButton's theme display error
Date Posted: 22 June 2008 at 2:19am

I develop the app with MDI frame, Now I have created CChildFrame derived CXTPFrameWndBase<CMDIChildWnd> class, my CChildView is derived CFormView, then I created a CButton control and a CXTButton control, followed code:

//the codes in CMainFrame.cpp
 
XTThemeManager()->SetTheme(xtpThemeOffice2003);
XTPPaintManager()->SetTheme(xtpThemeOffice2003);

then display styles:
 
but I want to get display style:
 
I can't find the reason.
Please help me!



Replies:
Posted By: Oleg
Date Posted: 22 June 2008 at 2:37am
Hi,
If you want standard Style, you can use standad CButton. See our Button sample, it shows how to enable WInXP theme.


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


Posted By: littleameng
Date Posted: 22 June 2008 at 4:12am
Firstly, thank you for your answer!
 
Now I want the office 2003 style! but I can't do it!
 
Could you tell me how to do?


Posted By: littleameng
Date Posted: 22 June 2008 at 4:35am

After saw the button sample, I have found that I modify "CXTButton" to "CXTPButton" and I can see the standad style. But I don't know the reason, Could you tell me the different between "CXTButton" class and "CXTPButton" class!

Thank you very much!



Posted By: Oleg
Date Posted: 22 June 2008 at 7:53am
Hi,
CXTPButton is new class in 12.0 release. I recommend use it for new applications.


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



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