I would expect you could just set up a timer event and repaint every x seconds (maybe every .5 seconds?). I have never played with the control, so I dont know for sure, but this may work for you. If you don't mind, you may want to stop the timer when the control is not active and start again when you have the focus to save on unneeded processor use... Just a few thoughts.
Joe Frazier, Jr. Technical Support Engineer Peopleclick Service Support Tel: +1-800-841-2365 E-Mail: mailto:[EMAIL PROTECTED] > -----Original Message----- > From: Jonathan Southwick [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 13, 2002 4:32 PM > To: perl-win32-gui-users@lists.sourceforge.net > Subject: Re: [perl-win32-gui-users] need subroutine to run when Window > gets focus > > > > 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 > > > > ------------------------------------------------------- > 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 >