Hi,

If I do
use Wx;
my $colour = Wx::ColourDatabase->Find("GOLD");

I get the error:

Usage: Wx::ColourDatabase::Find(colourname) at testcol.pl line 3.

The error you are getting suggests either your version of Wx does not have 
Wx::ColourDatabase, or you need to 
use Wx;

Either way, once you have Wx::ColourDatabase compiled + you use Wx, then
my $colour = Wx::ColourDatabase::Find("GOLD");

will work.

Regards

Mark



Daniel wrote:
> Hi,
> 
> within ListCtrl and other objects you can use predefined wxColour-Values, but 
> this are only a few:
> 
> wxBLACK
> 
> 
> wxWHITE
> 
> 
> wxRED
> 
> 
> wxBLUE
> 
> 
> wxGREEN
> 
> 
> wxCYAN
> 
> 
> wxLIGHT_GREY
> 
> 
> In wxColourDatabase are much more defined. How can I use one of that? I tried 
> 
> $panel->{ListCtrl}{"list"} -> SetItemBackgroundColour( 1, 
> Wx::ColourDatabase->Find("GOLD"));
> 
> but this returns: 
> Can't locate object method "Find" via package "Wx::ColourDatabase"
> 
> So I placed this in my code:
> 
> use Wx::ColourDatabase;
> 
> And got:
> 
> Can't locate Wx/ColourDatabase.pm in @INC (@INC contains: C:/Perl/lib 
> C:/Perl/site/lib .)
> 
> 
> So please tell me what I'm doing wrong.
> 
> Regards Daniel
> 
> 
> 
> 
> 
>       Heute schon einen Blick in die Zukunft von E-Mails wagen? 
> www.yahoo.de/mail


Reply via email to