Description
The first line shows the system-handled scaling. We can see the UI structure and relative proportions at 96 DPI for reference.
The 3rd line shows the program-handled high DPI scaling. We can see that the icon sizes in the toolbar are correct relative to the font size, but the icons appear crowded on the toolbar. It's easy to guess that the padding isn't scaling with DPI.
The 2nd line shows program-handled high DPI scaling with the modified wxWidgets. I tried having a LLM write code to make the padding scale with DPI. We can see that the height is correct this time, and the spacing between buttons is also correct. However, the spacing between buttons and separators still isn't scaling with DPI. Testing revealed that the separator width isn't scaling with DPI.
I couldn't find a suitable way to scale the separator width while ensuring it's centered. Directly modifying the iBitmap member adds all the new width to the right side of the separator line, causing it to not be centered on the buttons on either side.
I would appreciate it if you could improve high DPI support for MSW wxToolBar in 3.2 and 3.3. It would be great if this bug could be fixed by default (without requiring developers to explicitly call SetToolPacking()); however, if it cannot be fixed due to compatibility requirements, I would at least like sufficient guidance in the documentation so that developers can improve their own programs.
Description
The first line shows the system-handled scaling. We can see the UI structure and relative proportions at 96 DPI for reference.
The 3rd line shows the program-handled high DPI scaling. We can see that the icon sizes in the toolbar are correct relative to the font size, but the icons appear crowded on the toolbar. It's easy to guess that the padding isn't scaling with DPI.
The 2nd line shows program-handled high DPI scaling with the modified wxWidgets. I tried having a LLM write code to make the padding scale with DPI. We can see that the height is correct this time, and the spacing between buttons is also correct. However, the spacing between buttons and separators still isn't scaling with DPI. Testing revealed that the separator width isn't scaling with DPI.
I couldn't find a suitable way to scale the separator width while ensuring it's centered. Directly modifying the
iBitmapmember adds all the new width to the right side of the separator line, causing it to not be centered on the buttons on either side.I would appreciate it if you could improve high DPI support for MSW
wxToolBarin 3.2 and 3.3. It would be great if this bug could be fixed by default (without requiring developers to explicitly callSetToolPacking()); however, if it cannot be fixed due to compatibility requirements, I would at least like sufficient guidance in the documentation so that developers can improve their own programs.