visual difference

Started by James Fuller, October 18, 2016, 11:51:58 AM

Previous topic - Next topic

James Fuller

Jose,
  Do you see any significant visual difference between the attached on  your system?

James

José Roca

Yes, mainly in the width of the window and controls.

James Fuller

Jose,
  Thanks. They both are the same on my system.
01 - is a resource dialog using Tahoma 10 for the font
02 - is a CWindow using pWindow.SetFont("Tahoma", 10)

I ran the app that displays #01 and then used PBWinSpy to get the sdk coordinates which I used in 02 for the window and controls.
They both also have the expanded manifest.

I used CLayout for sizing on both.

Is there something I can do to have them both the same size?

James

James Fuller

Jose,
  How about these?
I removed the dpi awareness from the manifest for Layout03.

James

José Roca

CWindow does scaling according the DPI ratio and the Dialog engine according the font size.

>Is there something I can do to have them both the same size?

You will have to change the CWindow code to do scaling according the font size.

José Roca

#5
> How about these?

And which is the one that uses a resource and the one that uses CWindow?

James Fuller

Jose,

01 - is a resource dialog using Tahoma 10 for the font with dpi aware manifest
02 - is a CWindow using pWindow.SetFont("Tahoma", 10) with dpi aware manifest
03 - is a resource dialog using Tahoma 10 for the font with NO dpi aware manifest

James



José Roca

Why you insist in using the dialog engine is a mystery to me. Like DDT, it seemed like a good idea in the past century, when we were using 600x800 monitors, but it is obsolete today.

James Fuller

Jose,
  I was using Dialogs way before DDT. It was my code back then that inspired Bob to develop DDT.
Also I like the WYSIWYG Dialog editor I use.
I also very much like your CWindow but am still having a hard time to see the advantages for simple data input screens. Convince me :)

I changed the Windows display settings on a Windows 10 laptop with a 1600x900 resolution.
I set it to 150% (the max it would allow).
All three windows in the zip displayed the same size??

James

James Fuller

Jose,
  My bad on all the same size.
It matched your views.

James

José Roca

> I was using Dialogs way before DDT. It was my code back then that inspired Bob to develop DDT.

So you're the culprit... I won't make the same mistake than Bob.