Essentially any time you would want to every time you wanted to change the 
color/pattern of the pen/brush.

I sent Brian a snippet showing him this in his own code off list, so everyone 
knows.

Jason P.

PS- on the topics of drawing, DCs and Translucency, there is the off chance 
skin-ability is actually already possible given a *large* amount of supportive 
work. For now though I have my hands full with the Application Bar (which I am 
behind on, sry to those waiting to use it)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Lindström
Sent: Wednesday, January 18, 2006 7:20 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] Win32::GUI and a "rolling line graph"

At 21:42 2006-01-18, Brian Millham wrote:
>How do you change the color and the style of the line.  It appears that you
>have to use a Win32::GUI::Brush object, but I can't figure out how to tie it
>to the Graphic object.

$dcDev->SelectObject($brush);

Create a brush for a line like this (once, not for every paint event):
my $brush = Win32::GUI::Pen->( -color => [0,0,0], -width => 1);


/J



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to