You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wxAuiToolBar should update packing/padding/margins on DPI change on MSW #26076
wxAuiToolBar::Create contains initialization of some packing/padding/margins values which are not updated on DPI change. Would be great to have them updated on DPI change.
I think we should do the same thing as we did in 0e7420f (Fix per-monitor DPI handling of wxAuiToolBarArt element sizes, 2025-02-24) and 43b55cf (Avoid scaling small metrics by DPI in wxAuiDockArt, 2025-02-22), i.e. just store these values in DIPs and apply FromDIP() when using them.
The only problem is that SetToolPacking() and SetMargins() would need to use ToDIP() to remain compatible which is a bit weird, but I guess not that much of a problem in practice.
Activity
vadz commentedon Jan 7, 2026
I think we should do the same thing as we did in 0e7420f (Fix per-monitor DPI handling of wxAuiToolBarArt element sizes, 2025-02-24) and 43b55cf (Avoid scaling small metrics by DPI in wxAuiDockArt, 2025-02-22), i.e. just store these values in DIPs and apply
FromDIP()when using them.The only problem is that
SetToolPacking()andSetMargins()would need to useToDIP()to remain compatible which is a bit weird, but I guess not that much of a problem in practice.Scale wxAuiToolBar packing, padding and margins by DPI factor
vadz commentedon Feb 23, 2026
AFAICS this is as simple as #26235, please let me know if you (still) see any problems with it.
Scale wxAuiToolBar packing, padding and margins by DPI factor
Scale wxAuiToolBar packing, padding and margins by DPI factor