Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Win32::GUI Window Color?

by Anonymous Monk
on Aug 05, 2002 at 05:12 UTC ( [id://187589]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This should be a rather simple one for someone... is there a way, using Win32::GUI, to change the background of a window to something besides that default gray? Ultimately, to make the background a bitmap instead of a color. Or should I use tk for this?

Replies are listed 'Best First'.
Re: Win32::GUI Window Color?
by mkmcconn (Chaplain) on Aug 05, 2002 at 06:44 UTC
Re: Win32::GUI Window Color?
by frag (Hermit) on Aug 06, 2002 at 02:24 UTC
    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."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://187589]
Approved by vagnerr
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-20 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found