03 June 2017, 22:15 | #1 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,333
|
GUI scaling, edit controls vs combo boxes
WinUAE increases the height of edit controls (string gadgets in Amiga-speak) when the window height is large. [Text inside remains the same size, in the user-selected font.]
However, combo boxes (like edit controls but with a drop-down list) don't scale their height. They are positioned as if their height is being scaled though, so when the settings window is tall, they appear mis-aligned relative to the control label. To fix that, can you set the height of combo boxes using the CB_SETITEMHEIGHT message? [The heights of the selection field and the list items can be set independently. I'm not sure whether or not it would be a good idea to also set the list item height larger to match the combo box height.] |
01 July 2017, 13:33 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Done but I am not sure if it looks much better because text is not vertically centered (and I can't see any way to force it centered).
|
01 July 2017, 16:21 | #3 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,333
|
Hmm, looks like you'd have to mess with owner-drawn combo boxes to vertically centre text in the selection box. Probably way too much hassle just to centre the text. Maybe an "auto" setting for GUI font size could solve that. WinUAE would adjust the GUI font size according to the window size.
[Is the selection field text still positioned at the top if you use CB_SETITEMHEIGHT to set the height of list items (wParam = 0) to match the selection field height?] |
01 July 2017, 17:10 | #4 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Quote:
Font adjustment: maybe.. Quote:
|
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pre-Scaling before Bilinear Scaling? | rsn8887 | request.UAE Wishlist | 6 | 05 September 2015 19:13 |
edit savegame | mcdennem | support.Apps | 3 | 28 December 2009 19:17 |
Kumiko GUI - Amiga Workbench 3.1 GUI for Windows | milika | Amiga scene | 31 | 18 April 2007 19:16 |
Can't edit | Galaxy | project.Wiki | 2 | 01 April 2007 23:25 |
BUG: Quickstart drive combo boxes + multi-image archives | pterry | support.WinUAE | 1 | 30 March 2007 18:36 |
|
|