Hi,

This an old bug report :o)

  -color for Win32::GUI::Class only handle system color as background brush.
  I add a new option -brush for use a Win32::GUI::BRUSH.

Common -background option take a color, but it's work only for some control
(Label, Edit, Button, ListBox).

Laurent.

> [Everything below relates 0.0.670]
>
> Re: this post over at PerlMonks:
> http://www.perlmonks.org/index.pl?node_id=370447
>
> Is the -color of Win32::GUI::Class broken for anything other than system
> colors?
>
> According to the code, this should work:
> my $clsColor = Win32::GUI::Class->new(
>      -name => "classColor",
>      -color => [23, 12, 32],
>      ) or die("Could not create Class\n");
>
> (it dies)
>
> Also, a color like "#FFCCFF" should work, but doesn't. The -color also
> can't take a Brush object as the docs indicate would be supported (but the
> code doesn't (the SvCOLORREF function)). None of this works for me.
>
> Actually, the -background option of a Window seems to behave the same, but
> it also uses SvCOLORREF.
>
>
> Or is it just me? :)


Reply via email to