The following function (based on code in the wxDemo) is used in Padre
to load the
xpm files for the toolbar. This works well on Ubuntu but gives
"no image handler for type 9 defined" error on Windows
using wx 0.84,  wxwidgets 2.8.7  on strawberry perl 5.10

any idea why and how to solve it would be appreciated.

sub _bitmap($) {
    my $file = shift;

    my $dir = $ENV{PADRE_DEV} ? catdir($FindBin::Bin, '..', 'share') :
File::ShareDir::dist_dir('Padre');
    my $path = catfile($dir , 'docview', "$file.xpm" );
    return Wx::Bitmap->new( $path, wxBITMAP_TYPE_XPM );
}


-- 
Gabor Szabo http://szabgab.com/blog.html
Test Automation Tips http://szabgab.com/test_automation_tips.html

Reply via email to