Re: [perl-win32-gui-users] putting my code into a package breaks UI?

2009-01-11 Thread Jeremy White
> # Begin button row > $btn_DBWindowDefault = $DBWindow->AddButton( > -name=> 'DBWindowDefault', > -text=> 'Ok', > -tabstop => 1, > -default => 1, # Give button darker border > -ok => 1, # press 'Retu

[perl-win32-gui-users] putting my code into a package breaks UI?

2009-01-11 Thread Jack Coates
Hi, I have a fairly large (>5K loc) Perl program that has a Windows UI. I've been applying Perl::Critic recommendations to it, but packaging the code breaks the UI (the buttons quit working and the scrollbar disappears). Here's a sample: sub DBWindow_Show { ... # build window $DBWindow =