Try the -fill and -frame options. According to docs your choices seem
limited to black/gray/white/none but trying playing with it. Maybe you can
do the exact color you want.

> -----Original Message-----
> From: Webmaster CZ [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 01, 2001 2:44 PM
> To: perl-win32-gui-users@lists.sourceforge.net
> Subject: [perl-win32-gui-users] color change (lable)...
> 
> 
> Hi !
> 
> I would like to change the background - color from my main-window :
> 
> #####
> $bgWindow = $Window->AddLabel(
>    -name      => "bgWindow",
>    -left      => 0,
>    -top       => 0,
>    -width  => $screensize_width,
>    -height => $screensize_height,
>    -background => "#".$BackgroundRed.$BackgroundGreen.$BackgroundBlue,
> );
> ######
> 
> But how i can now the color chnage ???
> 
> Thing's like:
> ##########
> $BackgroundRed = "59";
> $BackgroundGreen = "12";
> $BackgroundBlue = "00";
> 
> [....]
> 
> $bgWindow->InvalidateRect(1);
> #########
> 
> ... not working ...
> 
> #####
> $bgWindow->Background("#$BackgroundRed$BackgroundGreen$Backgro
> undBlue");
> #####
> 
> work's not too ...
> 
> ####
> $bgWindow->Change( -background =>
> "#$BackgroundRed$BackgroundGreen$BackgroundBlue");
> ####
> 
> ... is the same ... work's nothing ...
> 
> I don't know ... how can I change it ???
> Please help me, thx !!!
> 
> cu
> Thorsten Sommer
> 
> 
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 

Reply via email to