Chris Wearn wrote:
Hi All,
Using the TabFrame module developed by Laurent... however using the
latest checkout from Sourceforge CVS, in use, it errors with non-fatal
warnings of '-style' and '-exstyle' being deprecated in GUI.pm line 597.
Has anybody got a fix for Frame.pm to work.
Chris,
I was just having a look at this - it seems Win32::GUI's support for
control of warnings is somewhat limited. I will start a discussion on
the hackers list to see if we can come up with a better solution. In
the mean time, try adding this somewhere near the start of your
program. It will silence the messages that you are worried about:
$SIG{__WARN__} = sub { print $_[0] if $_[0] !~
/^Win32::GUI.*-(ex)?style/; };
Regards,
Rob.