DPI-Aware Development

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Quinton
Posts: 2
Joined: Wed Jun 15, 2016 2:50 am

DPI-Aware Development

Post 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!
dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: DPI-Aware Development

Post 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
Post Reply