sdetweil has asked for the wisdom of the Perl Monks concerning the following question:
not technically a perl question, but app written in Perl, and the widest skill base is clearly here.
so, my users want to change the colors of one of the windows in our application..
it is a wxPerl wxTextCtrl
the code does a wxSetForegroundColour() and wxSetBackgroundColour(), and then does a window->Update
the background changes. the foreground does not.. except, when we write more info to the window, it comes out with the new foreground color.
of course this only fails on *ix, on Windows it behaves as expected.
so there must be some rules about a multiline text control in gtk that I don't understand.
so, my users want to change the colors of one of the windows in our application..
it is a wxPerl wxTextCtrl
the code does a wxSetForegroundColour() and wxSetBackgroundColour(), and then does a window->Update
the background changes. the foreground does not.. except, when we write more info to the window, it comes out with the new foreground color.
we tried $detailsInfo->Update();# in RGB colors $detailsInfo->SetBackgroundColour(Wx::Colour->new($tokens[1], $tokens[ +2], $tokens[3])); $detailsInfo->SetForegroundColour(Wx::Colour->new($tokens[1], $tokens[ +2], $tokens[3])); $detailsInfo->Refresh();
of course this only fails on *ix, on Windows it behaves as expected.
so there must be some rules about a multiline text control in gtk that I don't understand.
Back to
Seekers of Perl Wisdom