Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Tuesday, February 14, 2012

Perl Win32::GUI Terminate

Effect of returning different values from the onTerminate event handler of your main window:

-1 ('terminate message loop') - window closes, Win32::GUI::Dialog returns.
1 ('default action') - window closes, Win32::GUI::Dialog continues.
0 ('don't take default action') - window does not close, Win32::GUI::Dialog continues.

Is this different from Perl-Tk? A Tk MainWindow only closes from the X box if you write a WM_DELETE_WINDOW protocol handler which calls destroy(), but that destroy makes MainLoop terminate.

Followers

Blog Archive