>The error you are getting suggests either your version of Wx does not
have Wx::ColourDatabase, or you need to
use Wx;
I agree with that.
>Either way, once you have Wx::ColourDatabase compiled + you use Wx,
then
>my $colour = Wx::ColourDatabase::Find("GOLD");
I didn't wanted to learn how to compile Wx Components just for having a golden
background in ListCtrl. Is there no easier way doing this?
Regards
Daniel
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
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie“s
mit dem neuen Yahoo! Mail. www.yahoo.de/mail