How to set xtpbutton backcolor dynomic |
Post Reply |
Author | |
crag
Newbie Joined: 02 March 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
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.
|
|
crag
Newbie Joined: 02 March 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Please help me
|
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Debug in CXTPButtonOffice2007Theme::DrawButtonBackgroun function and see
what CXTPButton will do. Jimmy |
|
crag
Newbie Joined: 02 March 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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 ?
|
|
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 |