Merge branch 'per-monitor-dpi-aware-controls-1' of https://github.com/MaartenBent/wxWidgets
Update the font of some buddy controls when the DPI changes. Fix the position of the statusbar after a DPI change. Add some changes that were suggested in https://github.com/wxWidgets/wxWidgets/pull/1499 but left out from it. Some sizes are cached to improve the speed of the library. These sizes become incorrect when the DPI changes. And are incorrect when a window is created on a display with a different DPI. Fix this by checking if the current DPI is the same as the DPI that was used when calculating the size, otherwise recalculate the size. Closes https://github.com/wxWidgets/wxWidgets/pull/1530
This commit is contained in:
@@ -179,11 +179,15 @@ public:
|
||||
|
||||
|
||||
/**
|
||||
Returns the default size for the buttons. It is advised to make all the dialog
|
||||
buttons of the same size and this function allows retrieving the (platform and
|
||||
current font dependent size) which should be the best suited for this.
|
||||
Returns the default size for the buttons. It is advised to make all the
|
||||
dialog buttons of the same size and this function allows retrieving the
|
||||
(platform, and current font dependent) size which should be the best
|
||||
suited for this.
|
||||
|
||||
The optional @a win argument is new since wxWidgets 3.1.3 and allows to
|
||||
get a per-monitor DPI specific size.
|
||||
*/
|
||||
static wxSize GetDefaultSize();
|
||||
static wxSize GetDefaultSize(wxWindow* win = NULL);
|
||||
|
||||
/**
|
||||
Returns the string label for the button.
|
||||
|
Reference in New Issue
Block a user