Hi Vadim, others.
Using wxWidgets f3aa944 from git on Mac Tahoe 26.2
wxTreeCtrl::SetStateImages() with a wxVector<wxBitmapBundle> with 16x16 (in red) and 32x32 (in green for test) wxBitmapswxTreeCtrl::SetItemState() for each Child Item (for test)wxWithImages function:void WXHandleDPIChanged(wxDPIChangedEvent& event)
{
if ( HasImages() )
OnImagesChanged();
event.Skip();
}
HasImages() returns false and hence virtual wxGenericTreeCtrl::OnImagesChanged() is never called, which should handle DPI changes for the state images by m_imagesState.GetUpdatedImageListFor(this)wxTreeCtrl::SetStateImages(BitmapBundleList) I also call wxTreeCtrl::SetImages(BitmapBundleList) (even though I don't use any Item Images), then the State Images will become DPI-aware correctly as expected (3rd images with 16x16 red state images)wxGenericTreeCtrl::OnImagesChanged() will be used to handle DPI changes for State ImageswxWithImages to judge that wxTreeCtrl will use OnImagesChanged() to update it State Images... ?)—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()