Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTButton Help!!!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTButton Help!!!

 Post Reply Post Reply
Author
Message
mikexyz View Drop Down
Newbie
Newbie
Avatar

Joined: 03 May 2005
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikexyz Quote  Post ReplyReply Direct Link To This Post Topic: CXTButton Help!!!
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.