Re: [perl-win32-gui-users] Button Bitmap inconsistency

2011-03-29 Thread Jeremy White
Quick reply, it could be a simple scoping problem: > package Testing; > > use strict; > use warnings; > use Win32::GUI(); > use Win32::GUI::Constants qw(BS_BITMAP); move the images here - that way the objects don't get destroyed when they go out of scope. my $IMG1 = new Win32::GUI::Bitmap("D:

[perl-win32-gui-users] Button Bitmap inconsistency

2011-03-29 Thread Ken Slater
Hello, I have a problem in that I am trying to build a window inside a package. However, when I build a button inside the package, the bitmap does not display. For instance, I have this simple program: use strict; use warnings; use Win32::GUI(); use Win32::GUI::Constants qw(BS_BITMAP); my $mw =