Thanks. That worked. I just wish the stuff would stay on the graphic
window as I drag other windows away from the face of it. But this works as
a work-around.
How difficult is it to paint on a Graphics control? The graphics stuff is
new to me.
Thanks again.
Jonathan
At 11/13/2002 10:04 PM, you wrote:
At 11:45 2002-11-13 -0500, Jonathan Southwick wrote:
Is there any way to get a routine to run when a window is brought to the
top or receives focus? That seems to be the only way I can get a DC
object to refresh after it is covered by another window.
The event Activate is triggered when the window is activated.
sub yourWindowName_Activate {
refreshMyStuff();
return(1);
}
But if you drag another window over your DC, it won't be repainted like
this (the event will never trigger). For that you need to paint on a
Graphics control and use the Paint event to trigger the refresh.
/J
-------- ------ ---- --- -- -- -- - - - - -
Johan Lindström Sourcerer @ Boss Casinos [EMAIL PROTECTED]
Latest bookmark: "Perfect Productivity - Tony Bowden Understandin..."
http://www.tmtm.com/insanity/2002/11/12.html
dmoz (1 of 22): /Society/Activism/Media/Radio/ 63
-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about your web server
security? Click here for a FREE Thawte Apache SSL Guide and answer your
Apache SSL security needs: http://www.gothawte.com/rd523.html
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users