test colours unsetting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -956,14 +956,15 @@ void MyPanel::OnChangeColour(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
static wxColour s_colOld;
|
static wxColour s_colOld;
|
||||||
|
|
||||||
|
SetThemeEnabled(false);
|
||||||
// test panel colour changing and propagation to the subcontrols
|
// test panel colour changing and propagation to the subcontrols
|
||||||
if ( s_colOld.Ok() )
|
if ( s_colOld.Ok() )
|
||||||
{
|
{
|
||||||
SetBackgroundColour(s_colOld);
|
SetBackgroundColour(s_colOld);
|
||||||
s_colOld = wxNullColour;
|
s_colOld = wxNullColour;
|
||||||
|
|
||||||
m_lbSelectThis->SetForegroundColour(wxT("red"));
|
m_lbSelectThis->SetForegroundColour(wxNullColour);
|
||||||
m_lbSelectThis->SetBackgroundColour(wxT("white"));
|
m_lbSelectThis->SetBackgroundColour(wxNullColour);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user