Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to set xtpbutton backcolor dynomic
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set xtpbutton backcolor dynomic

 Post Reply Post Reply
Author
Message Reverse Sort Order
crag View Drop Down
Newbie
Newbie


Joined: 02 March 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crag Quote  Post ReplyReply Direct Link To This Post Topic: How to set xtpbutton backcolor dynomic
    Posted: 05 March 2009 at 11:03pm
Yes,thanks。
 
New Class CXTPButtonOffice2007ThemeGrn,then override DrawButtonBackgroun function .And call SetTheme with this class.That's OK.
 
But a new problem.Maybe a CXTPbutton's bug.  If want to set a button that I pressed,no effect.then press another button,means setfocus another button ,ok.  The problem is : Can't set a focused button to a theme.
 
How can I do ?
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 04 March 2009 at 5:07am
Debug in CXTPButtonOffice2007Theme::DrawButtonBackgroun function and see
what CXTPButton will do.

Jimmy

Back to Top
crag View Drop Down
Newbie
Newbie


Joined: 02 March 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crag Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2009 at 9:28pm
Please help me
Back to Top
crag View Drop Down
Newbie
Newbie


Joined: 02 March 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crag Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2009 at 4:04am

if set xtpbutton theme to office2007 blue.

Now I want to set backcolor to customer color.I try to set like this:
 
 CXTPButtonOffice2007Theme* pTheme2007 = new CXTPButtonOffice2007Theme;
 pTheme2007->m_crBack = RGB(0,0,0);
 pTheme2007->m_crBackChecked = true;
 m_btn1.SetTheme(pTheme2007);
 
No effect.How can I do,please,thanks.
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.125 seconds.