Ami wrote:
At the moment I'm putting callbacks in package main, i.e. "global". Is
there any way to specify a package for callbacks? Ideally Win32::GUI would
assume the package of the object, instead of package main.
Yes. Or pass the window object to the event handler, that would be nice.
Untested, but I think it works like this: set -name =>
"MyPackage::MyControlname". This screws up a few other things, e.g.
accessing the controls in an easy manner so it's not a good solution.
I keep all my control names in main, and put all event handlers in package
main like this:
package MyApplicationStuff;
sub ::winMain_Terminate { #blah }
/J
------ ---- --- -- -- -- - - - - -
Johan Lindström Boss Casinos
Sourcerer [EMAIL PROTECTED]
http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail