Hail Monks!
i am attempting to set the background color of my window, and it is really turning out to be a project. this is what i have so far...as an example
#!/usr/bin/perl
use warnings;
use strict;
my $main_class = new Win32::GUI::Class(
-name => "temp_Class",
-color => 5, # i think 5 is the default window color, it seem
+s i can only go on a scale from 1-5
);
my $main = new Win32::GUI::Window(
-name => 'Main',
-title => 'test',
-width => '325',
-height => '310',
-minsize => ['300', '310'],
-class => $main_class,
-style => WS_OVERLAPPEDWINDOW,
);
$main->Show();
Win32::GUI::Dialog();
for the class i have found that i can use a BRUSH object or COLOR value... though i seem to be restricted to 5 colors... (1-5). if you put a 0 in, the background is kinda transparent... and the others are weird shades of blue and red... i really just want to set the background to white, but i cant figure it out...
here is a mail message from the mailing list about RichEdit... not quite sure how to implement it... any help would be great.
thanks monks!
edited by boo_radley -- title change (was :another Win32::GUI question)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.