Menu

#5 Load Bitmaps From XRC

Unstable_(example)
pending
nobody
5
2016-04-25
2014-04-02
sodev
No

This patch adds a new option for loading bitmaps, they can be loaded from the XRC resource system. This is done by simply using the LoadBitmap() method from the wxXmlResource singleton. There gets no code created that actually loads the resources, this has to be done externally.

I only know C++ and therefor i implemented code generation only for this target, all the other targets add a wxNullBitmap, that should be updated by someone who knows these languages better than me.

To allow the XRC code generator to use this feature there was a small change necessary in the SDK that simply tests for this new option and extracts the resource name like the current code extracts the file name when the bitmap is loaded from file.

1 Attachments

Discussion

  • ryanjmulder

    ryanjmulder - 2016-04-25
    • status: open --> pending
     
  • ryanjmulder

    ryanjmulder - 2016-04-25

    Thanks very much for your patch, it looks useful. However, we really need code generation for all supported languages. If you're still interested in this feature, please supply a new patch with code generation for all supported languages.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.