English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 03 June 2017, 22:15   #1
mark_k
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.]
mark_k is offline  
Old 01 July 2017, 13:33   #2
Toni Wilen
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).
Toni Wilen is offline  
Old 01 July 2017, 16:21   #3
mark_k
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?]
mark_k is offline  
Old 01 July 2017, 17:10   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by mark_k View Post
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.
Not going to do that. Customizing drawing can easily make weird side-effects depending on theme etc..

Font adjustment: maybe..

Quote:
[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?]
Yes. Text stays at the top.
Toni Wilen 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
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

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 09:42.

Top

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