PlanetSquires Forums

Support Forums => José Roca Software => Topic started by: James Fuller on October 18, 2016, 11:51:58 AM

Title: visual difference
Post by: James Fuller on October 18, 2016, 11:51:58 AM
Jose,
  Do you see any significant visual difference between the attached on  your system?

James
Title: Re: visual difference
Post by: José Roca on October 18, 2016, 12:10:02 PM
Yes, mainly in the width of the window and controls.
Title: Re: visual difference
Post by: James Fuller on October 18, 2016, 01:43:52 PM
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
Title: Re: visual difference
Post by: James Fuller on October 18, 2016, 02:06:16 PM
Jose,
  How about these?
I removed the dpi awareness from the manifest for Layout03.

James
Title: Re: visual difference
Post by: José Roca on October 18, 2016, 02:40:10 PM
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.
Title: Re: visual difference
Post by: José Roca on October 18, 2016, 02:46:46 PM
> How about these?

And which is the one that uses a resource and the one that uses CWindow?
Title: Re: visual difference
Post by: James Fuller on October 18, 2016, 03:14:06 PM
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


Title: Re: visual difference
Post by: José Roca on October 18, 2016, 03:52:08 PM
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.
Title: Re: visual difference
Post by: James Fuller on October 18, 2016, 04:41:20 PM
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
Title: Re: visual difference
Post by: James Fuller on October 18, 2016, 05:23:41 PM
Jose,
  My bad on all the same size.
It matched your views.

James
Title: Re: visual difference
Post by: José Roca on October 18, 2016, 05:34:06 PM
> 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.