Re: How to handle high DPI with FOX
[email protected] Mon, 09 Dec 2024 14:57:36 -0600
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <[email protected]> |
On 2024-12-09 14:30, Sander Jansen wrote: > Some ideas I had years ago: > https://github.com/gogglesmm/gogglesmm/commit/d65e42cd37f20e915de5309aba13adbbd093e29e > > On Mon, Dec 9, 2024 at 2:25 PM Sander Jansen <[email protected]> > wrote: > >> There's nothing in the core library for high DPI. However you should >> be >> able to come up with something that can make it more bearable for your >> users. >> First some sort of check (or user setting) whether high dpi is enabled >> and >> determine some scale factor (1x, 2x, 3x, everything is pixel based so >> no >> fractions) and then apply the scale factor to the spacing and padding >> parameters for the widgets and layout managers (and subclass where >> needed). >> This would not solve the issues of widget drawing (single lines >> needing to >> be doubled etc), but you could subclass and come up with your own >> drawing >> code of course. >> >> On Mon, Dec 9, 2024 at 2:02 PM Roland Plüss via Foxgui-users < >> [email protected]> wrote: >> >>> On my lapto I have now a high resolution of 3840x2160. To see text >>> good >>> enough I've set the DPI scaling of Windows to 250%. FOX does render >>> with >>> the proper font size but all icons, graphics and sizes are still 250% >>> too small causing layouts to break and the entire UI to become >>> unusable. >>> >>> Does FOX have high DPI support and if yes how can it be used? What would be required is a 2nd set of (bigger) icons, to be used if on high-DPI screens. For your own code, it would be a simple matter of switching to this other icon-set. For the library itself, its a bit more tricky, as I'd have to build some sort of mechanism in to make switch. The hard part will be the massive amount of art-work to be drawn... An alternative approach would be to declare the built-in icons "fallback icons" and pluck the high-rez icons from external files, via FXIconCache, FXIconSource, -- JVZ _______________________________________________ Foxgui-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/foxgui-users