That's a possibility, but the original handler is set in the Skin.pm module. The Skin Editor uses the Skin.pm module, but needs to override handlers at certain times.
You've given me an idea to go on. Brian Millham This message traveled at least 44,000 miles to reach you! Creator of the DW6000 Monitor http://www.millham.net/dw6000 [EMAIL PROTECTED] -----Original Message----- From: Jeremy White [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 4:09 AM To: [EMAIL PROTECTED]; perl-win32-gui-users@lists.sourceforge.net Subject: RE: [perl-win32-gui-users] Unsetting an event >I'm working on a GUI interface to create skins for my skin module. I'd >like >to be able to set an event (using SetEvent('MouseDown', \&handle)), and >when >I'd done with that event, reset the event to it's prior behavior. Is there >a way to do this? I've looked on MSDN, and the closest that I can find is >CloseHandle. However, there does not appear to be a way to get the handle >of the event. I may be misunderstanding - but couldn't you do something like: my $original=\&Original; $control->SetEvent('MouseDown', $original )); ... #set new handler... $control->SetEvent('MouseDown', \&handle)); ... #set back to original $control->SetEvent('MouseDown', $original )); Cheers, jez. --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0620-0, 05/15/2006 Tested on: 5/17/2006 7:21:56 AM avast! is copyright (c) 2000-2006 ALWIL Software. http://www.avast.com