PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Dan English on September 04, 2012, 02:48:41 PM

Title: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Dan English on September 04, 2012, 02:48:41 PM
I have an app that was created fully in FireFly 3.10.

In the interest of gaining high DPI awareness, I've opened it up in FireFly 3.61 and recompiled.  Everything compiles fine, but not all the controls get resized when increasing the Windows text size.

These appear to get increased in size properly:  forms, menus, textboxes and command buttons.  Unfortunately the text in the labels, textboxes, listviews and comboboxes are still small.

Is there something I need to do with all these affected controls?

Thanks!
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Dan English on September 05, 2012, 12:41:08 AM
I've been going over this again tonight, and have confirmed I have the latest Jose Roca inclues, and FireFly 3.61 .exe.

I've also discovered that new projects aren't fully DPI aware either.  I created a brand new .EXE project, and added one label and one textbox.  I didn't change any properties at all; just left all at defaults.  Compiled, and the text was small just like my old 3.10 project.

What's very strange is that the controls as shown in FireFly are large, as expected.  When the program is compiled however, everything goes to small text.
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Dan English on September 05, 2012, 12:44:50 AM
A couple screenshots to illustrate the issue.  The first is in the IDE, and looks normal.  The second is compiled, and has small text.
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Dan English on September 05, 2012, 10:23:53 AM
Another follow-up...

I installed FireFly 3.60 (plus 3.61 .exe update and latest JR includes) on another PC, also running Windows 7, and the exact same issue exists.

I'm officially out of ideas at this point!
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Paul Squires on September 05, 2012, 12:19:04 PM
Strange, I don't see the same issue on my machines. What font name and size are you using? Do you have the FontUpgrade property set???
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Dan English on September 05, 2012, 12:55:23 PM
Both the label and textbox are set to Segoe UI at 9pt.  The label has FontUpgrade=false, while the Textbox has FontUpgrade=true.

I just did a new test this morning, and tried at all three typical font sizes -- 100%, 125%, and 150%.  Attached are the results.

Strangely, the text in the 150% mode is increased, but not on the 125%.
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Paul Squires on September 06, 2012, 08:46:16 AM
Hi Dan,

I am having a hard time recreating this effect on my end. I run my systems on 125% all day long and haven't seen the differences in font sizes that you are experiencing.

Anyone else out there reading this can recreate this problem? Maybe I am missing something.
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Dan English on September 06, 2012, 09:46:28 AM
I've got another application that was written outside of FireFly (PB10 with PBForms), and it scales properly.  I don't think it's my Windows system.

I must be missing some setting in FireFly.
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Paul Squires on September 06, 2012, 09:50:20 AM
Can you email me the simple project you created with the Label and TextBox. Specifically, I would like to see the CODEGEN*.* files that are created in the \Release folder of your project. I am wondering if your FF is bringing in a pre-360 version of the FF functions that create the fonts.
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Dan English on September 06, 2012, 10:25:41 AM
I've sent the release folder to you at the support at planetsquires dot com address.
Title: Re: High DPI awareness not working fully with old FireFly 3.10 app
Post by: Paul Squires on September 10, 2012, 05:26:44 PM
Problem solved. Dan needed the latest version of Jose's includes due to the way that the "Use Windows XP style DPI scaling" option is now handled.