Re: What is the correct way to response to the wxEVT_DPI_CHANGED event?

AsmWarrior <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi, thanks for the reply. See my comments below.

On Saturday, April 1, 2023 at 4:19:16 AM UTC+8 Maarten Bent wrote:

Actually my comment about wxWindow::FromDIP is invalid. It shouldn't matter 
if you use wxWindow:: prefix.
I am not sure why using the Reset mode button results in a button with the 
wrong size. I cannot seem to reproduce this.

Can you tell me what is your environment? I'm testing under Win10 64bit and 
the compiler is GCC(from msys2), and the library is wx3.2.2.1 prebuild from 
msys2(installed by pacman command).

My guess is that the From::DIP function is from the constructor of the 
MyFrame::MyFrame, when the ResetMode function get called, the MyFrame get 
re-constructed, but the old scaling 1.0 value(which is used inside the 
From::DIP) is used for my wxButton?

Asmwarrior
  

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/48d6f1b8-99b2-464d-ac76-a5d500f3b1d1n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.