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
Opps, I forgot to include the code :-)
#!/usr/local/bin/perl -w
use strict;
use warnings;
use Win32::GUI;
use Win32::GUI::Resizer;
my $wWinPlot = 400;
my $hWinPlot = 250;
my $xBar;
Fill out the array. blank means no data received
my $samplesToChart = 100; # How many samples to chart
my
Here is the code (based on Johan's sample) that creates a rolling line
graph. The data being charted is saved in @graphData, and the graph data is
automatically adjusted to fit in the chart. I also added
Win32::GUI::Resizer to handle resizing the window.
I do have another question:
How do you ch
BTW, has anyone played with Windows transparency in Win32::GUI; the
ability to make a window 50% transparent so that windows under the top
window will still be visible? I've played with it some using VB5, but on
W2K it causes a BSOD when combined with a notify icon. I've never really
trie
4 matches
Mail list logo