![]() |
CXTButton Help!!! |
Post Reply
|
| Author | |
mikexyz
Newbie
Joined: 03 May 2005 Location: United States Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 May 2005 at 1:02am |
|
After you call SetXButtonStyle you clear previous theme. use m_btnCancel.SetTheme(new CXTButtonThemeOffice2003 (TRUE)); and m_btnCancel.SetXButtonStyle(BS_XT_WINXP_COMPAT); + Manifest if you need WinXP theme for button.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |