From: Mattia B. <mb...@ds...> - 2002-08-29 20:10:00
|
> > > Is there a name for the default background colour of a frame, a panel or > > > whatever Wx::Window derrivate? I tried to set the background colour of a > > > selected button, and tried to reset it back to its original value, and > > > thought that would be wxLIGHT_GREY, but that seems to be a bit darker > > > than the default backgroundcolour. > > Wx::SystemSetting::GetColour; I think the colour you want is > > wxSYS_COLOUR_WINDOW. > > > > HTH > > Mattia [ You should direct such questions to wxperl-users, not me personally ] > Speaking of color, I posted a question regarding color a while back, but did > not get a solution that worked. I have an app with a status bar, and I want Sorry, I must have overlooked it. > to be able to change the font color of the message to reflect the message > type. For example, error messages are red, success messages are blue, etc. > Is there a way to do this? The solution is creating a wxStaticText child of the status bar, displaying the text in the correct colour; from the OnSize handler in the status bar, resize the control to match the size of one of the status bar field (get the size using Wx::StatusBar->GetFieldRect). HTH Mattia |