We want to make our application hi-dpi aware, since many devices are hi dpi already today, e.g. most of the high end laptops and OSX systems and many more.
The wxWidgets roadmap states "One of the big planned changes for this 3.2 is better support for high DPI displays, [...] "
Does anyone know what this means in detail? Is this meant as an API change / API addition or more a focus on underlying implementation? Or should we start with current wx 3.0 and expect everything to be compatible?
By the way, does anyone know some kind of written experience howto or migration guide towards hi dpi UI development?
With the best regards,
Heiner
High DPI: Start with wx 3.0 or wait for 3.2?
-
- Experienced Solver
- Posts: 99
- Joined: Sat Oct 26, 2013 11:54 am
Re: High DPI: Start with wx 3.0 or wait for 3.2?
First you should just make a test. Mark your application as DPI-aware under Windows and let it run on a display with 150% or more scaling. Then you should see what needs fixing.
If you uses sizers for your GUI and don't use hard-coded values anywhere, you should be fine.
The main problem areas are hard-coded size values in the GUI, bitmaps in GUI elements and and custom drawing.
I don't know in which way wx 3.2 will make HighDPI support easier, i only know of wxWindow::ToDIP() and FromDIP() methods to scale coordinates, but you could easily write your own function for that.
If you uses sizers for your GUI and don't use hard-coded values anywhere, you should be fine.
The main problem areas are hard-coded size values in the GUI, bitmaps in GUI elements and and custom drawing.
I don't know in which way wx 3.2 will make HighDPI support easier, i only know of wxWindow::ToDIP() and FromDIP() methods to scale coordinates, but you could easily write your own function for that.
Use the source, Luke!
Re: High DPI: Start with wx 3.0 or wait for 3.2?
Hi,
Be aware that there are still problems with HiDPI, namely a multiple monitor support, especially on non-Windows systems.
Most likely that area will be fixed by the time 3.2 will be out.
Thank you.
Be aware that there are still problems with HiDPI, namely a multiple monitor support, especially on non-Windows systems.
Most likely that area will be fixed by the time 3.2 will be out.
Thank you.