Page 1 of 1

DPI-Aware Development

Posted: Fri Jul 01, 2016 6:36 am
by Quinton
Hi!

We have a number of users who utilize the DPI options (medium 125% size or larger 150% size) in the Windows display settings. This can have a tendency to cause applications to appear disproportionate, throw off layouts, and even hide entire controls. It's not a huge problem as I can usually convince the user to shrink it back down so that the application appears as it should, but I was wondering if there was a way to handle the increased size in Visual LANSA V13 SP2 and forward?

(This primarily affects Windows applications and VLF-WIN applications. I haven't tested the impact in VL Web, VLF-ONE, and so on.)

Thanks!

Re: DPI-Aware Development

Posted: Fri Jul 01, 2016 9:35 am
by dannyoorburg
Hi Quinton,

DPI awareness will be fixed in 14 SP1. It's a LANSA issue, so there's not much you can do right now.

Once you have 14.1, it will depend on the Render Type parameter how your application will scale.

- Render Type 'W" (Win32) will just scale the application pixel by pixel.
- Render Type 'X' (DirectX) will be much smarter about it, for instance, it will select appropriate font-sizes to keep the font nice and clear.

Regards,
Danny