Winstep

Software Technologies


 Winstep Forums


Print view
Board index : Winstep Forums : General Discussion  [ 2 posts ]
Author Message
 Post subject: Settings font issue (word wrap and weird shadow)
PostPosted: Sat Apr 04, 2020 8:14 am 
Offline
Global Moderator
Global Moderator
User avatar

Joined: Mon Jan 14, 2013 9:51 pm
Posts: 341
Location: Oregon, USA
First image: Word-wrapping ends up being too tall

Second image: Strange dropshadow effect

My Windows 10 (1909) UI scale is set to 100%

Image
Image


Back to top
 Profile  
 
 Post subject: Re: Settings font issue (word wrap and weird shadow)
PostPosted: Sat Apr 04, 2020 9:01 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 12283
Thanks for the heads up.

First case has a story behind it: got an email from a customer literally bad mouthing the application because, of all things, if you clicked on the blank space after the text in a checkbox it would still toggle that setting.

This was actually because of localization issues, in that translations usually use a lot more space than the English original, so the controls had to have blank padding space to make room for extra text. Checkbox controls do not automatically auto-size to fit the text, so this resulted in the issue the customer was seeing.

Since the localization mechanism I wrote already goes through every control in a dialog to translate the text from the original English, to shut him up I used the same routine to actually crop the space used by the checkbox control to the space used by the text portion AFTER translation.

Unfortunately if you then change the text of a control dynamically 'after-the-fact' (i.e.; after loading the form), this skips the routine that automatically adjusts the size based on the amount of text. It must be called specifically for that control otherwise what you see in the first screenshot can happen.

I went over most dialogs looking for those special cases but it's obvious I overlooked that one.

As for the second screenshot, that is actually what a ***disabled*** (grayed-out) common controls checkbox looks like on a black background. You can blame MS for that one. :)

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
Post new topic Reply to topic Board index : Winstep Forums : General Discussion  [ 2 posts ]
Display posts from previous:  Sort by  

Who is online

Users browsing this forum: Google [Bot] and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: