greetings comrads
I  have seen the XRC custom example in Wx::Demo and did

use Wx;
use Wx::FS;
use Wx::STC;
use base qw(Wx::App);

sub OnInit {
        my $app   = shift;
        my $frame = Wx::Frame->new( undef, -1, __PACKAGE__);

        Wx::FileSystem::AddHandler( Wx::MemoryFSHandler->new );
        local $/;
        Wx::MemoryFSHandler::AddTextFile( 'file.xpm', <<'EOB' );
...
EOB

        Wx::InitAllImageHandlers();
        my $bmp = Wx::Bitmap->new(32,32);
...
        my $ed = Wx::TextCtrl->new($frame, -1,'');
...
        $ed->LoadFile('memory:file.xpm');

but i get just error also loading into the bitmap doesn't work.
Any Suggestions?

Thanks a lot
Herbert aka lichtkind

Reply via email to