Describe the bug
The group-icons in the wxPropertyGrid not shown under Windows. Under Linux and Wine-Emulation it is working.
Expected vs observed behaviour
Group-Icons should be shown vs Black rects are drawn now.
Patch or snippet allowing to reproduce the problem
Just create a wxPropertyGrid with at least 2 groups and build for Windows.
Platform and version information
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Can the problem be seen in the propgrid sample? If not, could you please make a minimal patch to it allowing to reproduce the problem? TIA!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
And what "group-icons" do you have in mind? Any screenshot would be helpful.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Tried to strip down everything to a minimum.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
This issue can be reproduced even with propgrid sample when application manifest is not present.
So it seems it's not related to wxPropertyGrid itself but probably to wxBitmapBundle/wxImageList.
With manifest present everything looks good:
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@a-wi Have you tested with the latest master, i.e. is this the case even with 6feeed9 (Handle transparency to the best of our ability in wxImageList, 2022-05-05)?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Yes. tested with latest master. The issue is seen also with toolbar sample (without manifest):
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
FWIW, without the manifest, the toolbar always had the issue, see e.g. the report with 3.1.1 here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Oh, I didn't realize this was using wxToolBar
and not wxImageList
at all, sorry.
I don't know if we can do anything about this, the only thing to do when using comctl32 v5 is probably to fill the transparent areas with the toolbar background colour ourselves, but is it really worth doing it?
As for the original bug report: @roenck please use proper manifest (typically by ensuring that wx.rc
is included from your .rc
file) to solve the problem unless you have some very specific reason not to use it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #22419.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
It's okay for me to link against wx.rc to solve the issue.
Marginalia: But that is hard to find, especially if it is working with older version without this resource and if the app developer just looks into the example-cpp-source to understand how a widget must used.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
FWIW this requirement is documented here but it's admittedly not very prominent...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.