English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 10 December 2017, 17:16   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,344
Fallback GUI font for low-res modes?

Would it be possible to automatically fall back to a small font when a low-resolution full-screen mode is in use? E.g. MS San Serif/5 seems to allow most GUI controls to show in 720×480 or 800×600 mode.

By the way, with GUI open in a low-res full-screen mode like that, checking "Fullscreen GUI" makes the left-side tree view far too wide so other controls are no longer visible.

Edit to add: Also, when fullscreen GUI is checked could you make the GUI window borderless full-screen, i.e. without window title bar?

And, checkboxes and radio buttons seem a little too large when using a font like MS San Serif/5. The top row(s) of pixels seem to get cut off. That depends on the Windows scaling factor. I tried with 100% (OK) and 175% (cut-off controls). WinUAE does increase the height of the settings window to account for the larger title bar font, but for whatever reason Windows or WinUAE scales the controls slightly. Archive with a couple of pics:
Code:
https://www.media!fire.com/file/5z6145zmcib2xll/WinUAE_GUI_scaling.7z
Edit: Embedded pics


Last edited by mark_k; 31 December 2017 at 17:09.
mark_k is offline  
Old 29 December 2017, 23:21   #2
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,344
Another minor issue which I noticed with a small settings window... on the Miscellaneous settings page, the listview shows various options. If the settings window height is small enough a vertical scrollbar appears on the listview. However a horizontal scrollbar also appears, even though it isn't needed. (Which reduces the number of visible items.)
mark_k is offline  
Old 30 December 2017, 11:49   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
Too late for 3.6.0, later..
Toni Wilen is online now  
Old 03 January 2018, 15:48   #4
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,344
Looking at the second pic in the post above, Windows uses the same font & scaling for the settings window title bar as when the desktop is at monitor-native high res, even though the full-screen mode is much lower resolution. That wastes precious screen space. Is it possible to specify a smaller font for the window title bar?

I don't think there's a way to tell Windows to use a specific font/size for an individual window. You could use SystemParametersInfo() with SPI_GETNONCLIENTMETRICS / SPI_SETNONCLIENTMETRICS, specifying a smaller value for the lfCaptionFont field of the NONCLIENTMETRICS structure. But that seems to be a system-wide change. That could still be feasible — change when you switch to full-screen mode, revert to original value on exiting full-screen — but doesn't seem a very nice thing to do since it could affect other apps.

A possible alternative would be to open the settings window with the WS_EX_TOOLWINDOW extended window style. From that page:

WS_EX_TOOLWINDOW
"The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE."

Not appearing in the taskbar or Alt-Tab switcher may not be a problem if you're in full-screen mode. I wonder what happens if you specify (WS_EX_TOOLWINDOW | WS_EX_APPWINDOW)?

The page also mentions WS_EX_PALETTEWINDOW = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
"The window is palette window, which is a modeless dialog box that presents an array of commands."
mark_k is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
iGame screenshots on low res/colour displays Bloodwych support.Apps 9 03 February 2022 20:14
Pinball brain damage (amiga cd) low res problem dark13 support.WinUAE 2 30 May 2015 00:14
Font too small in iGame and WBInfo in ClassicWBFULLv28 NTSC:High Res Ranthalion75 project.ClassicWB 1 26 April 2014 00:37
New font on WinUAE GUI is unreadable..not to mention ugly InfoVS support.WinUAE 69 03 June 2007 00:43
Low-res tick-box????? crl support.WinUAE 1 28 August 2003 10:10

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08487 seconds with 15 queries