1. David Vasconcelos
  2. PowerBuilder
  3. Friday, 21 February 2020 17:33 PM UTC

Any one know how to turn off Windows DPI for a specific app.  I have tried doing it under the applications icon in the compatibility/Change high DPI settings and also tried to do it in the manifest... no luck.

Here is sample of the manifest. ( I only copied the top portion of it...)  Bold is what I added to the manifest, created it using invoker or highest... no difference.

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">unaware</dpiAwareness>
</windowsSettings>
</application>
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="x86"
name="Sybase.PB"
type="win32"

bla bla bla...........................................................

Roland Smith Accepted Answer Pending Moderation
  1. Friday, 21 February 2020 18:38 PM UTC
  2. PowerBuilder
  3. # 1

Take a look at this:

https://www.topwizprogramming.com/freecode_bitmap.html

It has DPI Aware functionality.

Comment
  1. David Vasconcelos
  2. Friday, 21 February 2020 19:02 PM UTC
I think I maybe missing something. I saw your app and you are doing the math to shrink a picture.. how would that be applied to an entire application. (Sorry if I'm missing something). Are you implying going through every object and changing its size?
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 21 February 2020 17:48 PM UTC
  2. PowerBuilder
  3. # 2
Comment
  1. David Vasconcelos
  2. Friday, 21 February 2020 19:07 PM UTC
Long fails.. get "specified module could not be found" Thanks anyway.
  1. Helpful
  1. Olan Knight
  2. Friday, 21 February 2020 23:18 PM UTC
Most numeric non-LONG values used in Windows APIs are unsigned integers: uint.

Try that.



Olan
  1. Helpful
  1. Roland Smith
  2. Friday, 21 February 2020 23:28 PM UTC
INT in C is a LONG in PowerBuilder so UINT = ULONG which he already tried.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.