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

Actually, it just silently doesn't work. No errors, but the images do not show up in my ListCtrl.
Wrong memory. A new try showed that it produces the same error as above, the "Can't load image from file 'Wx::Image=SCALAR(0x33094dc)': file does not exist." error.
(BTW: is this the Wx::Image or Wx::Bitmap constructor failing?)
  • Comment on Re^2: What's wrong with this Wx::Bitmap construction?

Replies are listed 'Best First'.
Re^3: What's wrong with this Wx::Bitmap construction?
by Anonymous Monk on Feb 27, 2010 at 00:12 UTC
    Why not create a self contained example which demonstrates your problem?
      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)