High DPI awareness not working fully with old FireFly 3.10 app

Started by Dan English, September 04, 2012, 02:48:41 PM

Previous topic - Next topic

Dan English

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!

Dan English

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.

Dan English

A couple screenshots to illustrate the issue.  The first is in the IDE, and looks normal.  The second is compiled, and has small text.

Dan English

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!

Paul Squires

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???
Paul Squires
PlanetSquires Software

Dan English

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%.

Paul Squires

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.
Paul Squires
PlanetSquires Software

Dan English

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.

Paul Squires

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.
Paul Squires
PlanetSquires Software

Dan English

I've sent the release folder to you at the support at planetsquires dot com address.

Paul Squires

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.
Paul Squires
PlanetSquires Software