[perl-win32-gui-users] Solved Re: Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread rkoch
Hello, I managed to solve my own problem with about 3 hours of tinkering and reading MSDN. Although I still haven't figured out how exactly WM_Paint messages are being generated. If I comment out the Update and the InvalidateRect method calls, the graph line still gets drawn; which means calling Sh

Re: [perl-win32-gui-users] Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread Steve Pick
An additional note: why is there a problem with portability? I suggest you try the (horrible) ImageMagick library if you want something truely portable. I say ImageMagick is horrible because it crashes a *lot* if you use threads, and the perl interface is badly documented. But you may want to give

Re: [perl-win32-gui-users] Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread Jeremy White
Hi, All I can say is that DC/Paint does work - and quite well. Although it does take a while to get your head around things. In the end I did go for using GD as the graphics engine (along with DIBitmap) since there was a performance issue using native windows drawing. Below is an example fro

Re: [perl-win32-gui-users] Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread Steve Pick
The Graphic object has a Paint event in which all your painting should be done. If you find that the graphic is going blank on resize or something, then you should call the Paint() event there too. see http://jeb.ca/perl/win32-gui-docs/index.pl/win32-gui-graphic for a simple example. You should VA

[perl-win32-gui-users] Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread rkoch
Hi, I am trying to draw an interactive graph in a window, and I don't want to use GD, ImageMagick, Freeimage or any other libraries because of portability issues. However, I can't figure out how to correctly use Win32::GUI::Graphic, Win32::GUI::DC, WM_Paint and InvalidateRect. I've tried reading th