I'm trying to figure this out myself, without the benefit of a Win32 box at hand, but here's what I've found:

While most recent docs (from the source tarball from the sourceforge page) don't list any color attributes that can be set when creating a Window or DialogBox object, there is the 'Class' object, which takes as an attribute "-color => COLOR or Win32::GUI::Brush object the window background color". That should be the key; see 'samples/class.pl' from that tarball for how you get from the Class to the Window/DialogBox.

Also note that you can make a Label object be a bitmap instead of text - and the label can be as big as you need it to be. But a properly tiled background may be a hassle.

There's a mailing list, where you can get a more authoritative answer.

-- Frag.
"Never could stand that dog."


In reply to Re: Win32::GUI Window Color? by frag
in thread Win32::GUI Window Color? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.