From: Brian M. <bmi...@di...> - 2006-01-22 23:17:14
|
I've been making great progress on this project. Once I'm done with it, I'll try to create a package that can do some simple charts. I do have another question: I'm writing a legend on the chart. Instead = of using 4 TextOut calls to write the legend on 4 lines, is there a way to = do it with one TextOut call. Also, is there a way to change the size of = the text? I see that there is a way to retrieve the size of a string (GetTextExtentPoint), but how can you change the size (or even font) of = the text. Brian Millham This message traveled at least 44,000 miles to reach you! Creator of the DW6000 Monitor http://www.millham.net/dw6000 bmi...@di...=20 -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of = Plum, Jason Sent: Thursday, January 19, 2006 5:09 PM To: per...@li... Subject: RE: [perl-win32-gui-users] Win32::GUI and a "rolling line = graph" 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: per...@li... [mailto:per...@li...] On Behalf Of = Johan Lindstr=F6m Sent: Wednesday, January 18, 2006 7:20 PM To: per...@li... 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 =3D Win32::GUI::Pen->( -color =3D> [0,0,0], -width =3D> 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=3Dlnk&kid=3D103432&bid=3D230486&dat=3D= 121642 _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/ ------------------------------------------------------- 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=3Dk&kid=103432&bid#0486&dat=121642 _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/ --- avast! Antivirus: Inbound message clean. Virus Database (VPS): 0603-3, 01/18/2006 Tested on: 1/19/2006 5:13:38 PM avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0603-4, 01/20/2006 Tested on: 1/22/2006 6:06:30 PM avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com |