in reply to Re^2: What's wrong with this Wx::Bitmap construction?
in thread What's wrong with this Wx::Bitmap construction?

Why not create a self contained example which demonstrates your problem?
  • Comment on Re^3: What's wrong with this Wx::Bitmap construction?

Replies are listed 'Best First'.
Re^4: What's wrong with this Wx::Bitmap construction?
by Anonymous Monk on Mar 02, 2010 at 17:36 UTC
    I took your request by heart and made this fork from the sample listctrl code: (see the test area section for a demonstration of the described problem)
      After playing with it, I see what is happening. IO::String, like perls in-memory file handles, only exist in perl land, whereas wxWidgets expect an actual system file handle, so that approach won't work.

      Luckily you can use newFromBits or newFromXPM (newData seems broken).

      You could get some ideas from App::Wx::PodEditor (and this bug report)