Daniel wrote:
does anybody know how to change color of Wx::StaticText?
I tried:
$head -> SetTextColour(Wx::TextAttr->new(Wx::Colour->new("RED")));
but:
Can't locate object method "SetTextColour" via package "Wx::StaticText" at...
Try this:
$head->SetForegroundColour( Wx::Colour->new(255, 0, 0) );
And these might be handy too:
$head->SetBackgroundColour( Wx::Colour->new(255, 255, 255) );
$head->SetFont( Wx::Font->new( 12, wxDEFAULT, wxNORMAL, wxBOLD, 0, "" ) );
Since most objects derive from wxWindow you can use almost all
Wx::Window methods on them:
http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindow
Cheers,
Huub Peters