High DPI: Start with wx 3.0 or wait for 3.2?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
heinermueller
Experienced Solver
Experienced Solver
Posts: 99
Joined: Sat Oct 26, 2013 11:54 am

High DPI: Start with wx 3.0 or wait for 3.2?

Post by heinermueller »

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
User avatar
doublemax
Moderator
Moderator
Posts: 19115
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: High DPI: Start with wx 3.0 or wait for 3.2?

Post by doublemax »

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.
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: High DPI: Start with wx 3.0 or wait for 3.2?

Post by ONEEYEMAN »

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.
Post Reply