SetScaleMode and GenericStaticBitmap

Hi Robin,

are there plans to support SetScaleMode?

SetScaleMode is mentioned in the documentation of StaticBitmap as being supported by <wx/generic/statbmpg.h>.
I had a look, but wx.lib.statbmp.GenStaticBitmap is not based on the C++ version and does not support scaling.

I would like to support ScaleMode in wxGlade, but if it’s only available in C++ I won’t spend time on this.

Regards,
Dietmar

The generic static bitmap class mentioned there is a C++ class that is not currently exposed to wxPython. It probably would not be too hard to add similar functionality to the generic Python class in wx.lib.statbmp and I would accept a PR that adds that enhancement.

Thanks. I have asked the user to submit a PR and then I will implement support in wxGlade.
Let’s see whether it will happen…

Regards,
Dietmar

The relevant C++ code is here: https://github.com/wxWidgets/wxWidgets/blob/fce84f7bd05294cfa7fe57ea635b00b69540e4e7/src/generic/statbmpg.cpp

It can be used to for inspiration on how to update the Python code in wx.lib.statbmp.