1. Miguel Leeuwe
  2. PowerBuilder
  3. Monday, 9 August 2021 10:01 AM UTC

Hi all,

I've tried several times to use an external manifest to make my application DPI aware. The fonts look really nice and well defined when I set my screen text to 125 %, but my images are being resized incorrectly by the PFC classes. I'm on one of the latest PFC versions. (Everything resizes perfectly well when using a setting of 100%).

When not using the manifest, everything resizes correctly but doesn't look as sharp when using 125% scaling.

Has anyone experienced this and / or have a workaround?

regards.

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Monday, 9 August 2021 21:59 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Miguel - 

I can pretty much guarantee there is no DPI-awareness logic included in the PFC, nor is there any built into PB that I'm aware of. Windows is likely providing you with an assist via TrueType font technology to help make text appearance acceptable at non-100% values.

Are you having an issue regarding ALL graphics within the app, PB-supplied images (toolbar/treeview images, for example), or external graphics (logo's, etc.)? Can you show us an example?

John

Comment
  1. Miguel Leeuwe
  2. Monday, 9 August 2021 22:02 PM UTC
Hi John, thanks for your reply. I'll try to show you something tomorrow. I tried to make a sample application (without PFCs, but couldn't reproduce the problem. That's why I'm thinking it might have to do something to do with the pFC classes).

regards.
  1. Helpful
  1. John Fauss
  2. Tuesday, 10 August 2021 01:20 AM UTC
I look forward to seeing it!
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 10 August 2021 09:00 AM UTC
See my last answer :)
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 10 August 2021 08:59 AM UTC
  2. PowerBuilder
  3. # 1

Here's a video in GIF format attached, to show what I'm talking about.

With 125 % scaling, on the splash window, you can see the image is not being resized correctly and on the main window after opening you'll see a gap between the image-buttons and the images which represent buttons.

We are using the PFC service which saves and restore window sizes and positions. It's almost as if the images on the datawindow are being sized before the pfc resize takes place.

When I have some time, I'll try to make a small pfc sample application to try and figure out where it goes wrong exaclty.

 

Attachments (1)
Comment
  1. René Ullrich
  2. Tuesday, 10 August 2021 09:15 AM UTC
Have you tried other image format (GIF, BMP) and/or size?
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 10 August 2021 17:27 PM UTC
Hi René, not yet, I'm going to try and recreate the case in a small app and definitely will try different image formats.

Thanks.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 26 August 2021 14:47 PM UTC
  2. PowerBuilder
  3. # 2

Hi,

It took me some time, but I finally had some time to figure out what's going wrong:

Nothing!

The problem I'm having is that one of the controls on my window is NOT being scaled, it's FixedBottom. Therefore, the images won't be changing when resizing the window.

With 125% dpi scaling however, the datawindow does become a bit larger. That's the whole culprit of my problem. When scaling is 100% the size of the dw remains the same.

okay, learned something new about our application again.

regards.

Comment
  1. John Fauss
  2. Thursday, 26 August 2021 15:14 PM UTC
I'm glad you were able to ferret out what's been going on, Miguel!. Thanks for letting me know.
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 26 August 2021 15:20 PM UTC
Thank you for your patience! (and help).
  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.