KeyWorksRW / wxUiEditor

RAD tool used to create and maintain wxWidgets UI elements.
Apache License 2.0
65 stars 7 forks source link

Resolve wxWidgets 3.1 image loading issues, fix wxPython/wxRuby3 XPM handling #1333

Closed Randalphwa closed 10 months ago

Randalphwa commented 10 months ago

This PR resolves some problems generating code for loading images when compiling for wxWidgets 3.1.1. It primarily affects wxStaticBitmap and menu and submenu items with bitmaps. The main problem resolved is when 3 or more bitmaps are combined into a bundle for wxWidgets 3.1.6 or later, but only the first image can be used under wxWidgets 3.1.1.

Put the wxueBundleSVG() function in a conditional section when compiling with a project set to wxWidgets 3.1 rather then generating an error that prevents the entire file from compiling.

This adds XPM support to wxPython and wxRuby3 -- verified on toolbar tools and wxStaticBitmap.