Print Page | Close Window

CXTButton Help!!!

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=2179
Printed Date: 08 November 2025 at 6:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTButton Help!!!
Posted By: mikexyz
Subject: CXTButton Help!!!
Date Posted: 03 May 2005 at 7:30pm
Hello:

I need help with CXTButton. I just design the dialog box. I drop two buttons. I change CButton to CXTButton. Here are my codes. Anyone out there help me.


Header file:

CXTButton      m_btnPlayTutorial;
CXTButton      m_btnCancel;


CPP File:

BOOL CDlgLaunchTutorial::OnInitDialog()
{
       ..
       ..
        ..
        XTThemeManager()->SetTheme(xtThemeOffice2003);
        m_btnPlayTutorial.SetTheme(new CXTButtonThemeOffice2003 (TRUE));
        m_btnPlayTutorial.SetXButtonStyle(BS_XT_WINXP_COMPAT);
        m_btnCancel.SetTheme(new CXTButtonThemeOffice2003 (TRUE));
        m_btnCancel.SetXButtonStyle(BS_XT_WINXP_COMPAT);

}


Mike



Replies:
Posted By: Oleg
Date Posted: 06 May 2005 at 1:02am

After you call SetXButtonStyle you clear previous theme.

use  m_btnCancel.SetTheme(new CXTButtonThemeOffice2003 (TRUE));
if you need Office 2003 theme for button

and

m_btnCancel.SetXButtonStyle(BS_XT_WINXP_COMPAT); + Manifest if you need WinXP theme for button.

 



-------------
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