From: Mattia B. <mb...@ds...> - 2002-04-04 09:07:02
|
On Tue, 2 Apr 2002, Marcus wrote: >How do you create your own colours? >I want to set the background colour on a notebook page. It works fine >with the predefined wxWHITE, like this: > >my ($page1) = $nb->GetPage(0); >$page1->SetBackgroundColour(wxWHITE); > >How do I set the background for a custom colour? >I tried $col=wxColour(red=0,green=0,blue=0), which is the example for >wxPython, but that did not work. $col = Wx::Colour->new( 0, 0, 0 ); $col = new Wx::Colour( 128, 255, 255 ); $col = new Wx::Colour( 'name' ); # for some names # I don't remember if # this ctor is implemented Regards Mattia |