1. Dean Helsley
  2. PowerBuilder
  3. Tuesday, 22 August 2023 14:42 PM UTC

We just upgraded to PB 2022 and have a problem with the border width of windows.  On my PC, running from the IDE or an EXE, the buttons at the bottom of a window are just barely crossing the border.  In PB 2019, there was a small gap between the buttons and the border.  I realize that changes were made to window sizes in general, and we can adjust for that.

The issue is that another developer and other users that are testing the 2022 build have half of the buttons cut off due to the bottom border's width.  The window borders are much thicker on their PC's while mine are pretty thin.  How can that be?  We need to figure this out, because I can make an adjustment for the button placement and it will look fine to me, but not to everyone else.  FYI, we are not using themes in that app.

We're running 2022 R2 Build 2819.

Thanks

 

 

Dean Helsley Accepted Answer Pending Moderation
  1. Wednesday, 23 August 2023 14:54 PM UTC
  2. PowerBuilder
  3. # 1

After a lot of searching online, I've discovered why our PC's look different.  I don't know why, but my PaddedBorderWidth setting was -15 and the other user's was -60.  I changed mine to -60 and now we look the same.  I have no clue why mine was different.  I don't go poking around in the registry.  That mystery will go unsolved. 

Here is a snippet of the same window in  both 2019 and 2022.  The borders are much thicker in 2022 (and were much thinner when PaddedBorderWidth was set to -15.  That setting does not appear to affect 2019's window appearance.  The only conclusion that makes sense is that those WindwMetrics entries are being used in 2022 and were not in 2019.

 

 

Attachments (2)
Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 23 August 2023 16:37 PM UTC
Hi Dean;

That makes sense as PB 2019/2021 were built with MS VC++ 2010 whereas 2022 was built with MS VC++ 2019.

BTW: PB 2022 R2 is built with MS VC++ 2022.

Regards ... Chris
  1. Helpful
  1. Dean Helsley
  2. Wednesday, 23 August 2023 16:42 PM UTC
Thanks. We just need to make some tweaks to our resize code to accommodate this.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 23 August 2023 00:09 AM UTC
  2. PowerBuilder
  3. # 2

Not a solution, but have a search on "windows 10 window borders thickness".

There seems to be an aerolite theme that allows to make changes to the thickness of borders.

Check which theme you user is using.

regards, good luck!

Comment
There are no comments made yet.
Dean Helsley Accepted Answer Pending Moderation
  1. Tuesday, 22 August 2023 18:28 PM UTC
  2. PowerBuilder
  3. # 3

I've attached screen shots so you can see the difference between them.  These are sheet windows.

 

 

Attachments (2)
Comment
  1. John Fauss
  2. Wednesday, 23 August 2023 02:34 AM UTC
Do both environments use the same display scale setting in Windows? The reason I ask is because the window border thickness in the second image is noticeably greater in relation to the font size than it is in the first image. PB apps are NOT DPI-aware (yet, maybe someday...)
  1. Helpful
  1. Dean Helsley
  2. Wednesday, 23 August 2023 14:46 PM UTC
I don't know the answer to that. I've discovered the difference, though. I can't add images to this comment, so I'm posting it separately.
  1. Helpful
There are no comments made yet.
Dean Helsley Accepted Answer Pending Moderation
  1. Tuesday, 22 August 2023 15:56 PM UTC
  2. PowerBuilder
  3. # 4

I realize there are differences in window sizes, and that we can make a few tweaks as well.  The question is why would the window border width be substantially different between two users running the same version of Windows?  I can change the resize code to place the buttons a bit higher and it will look fine to me, but because of their larger bottom border, the buttons will still be cut off.

Comment
  1. John Fauss
  2. Tuesday, 22 August 2023 17:53 PM UTC
What type(s) of windows are you referring to, Dean? Sheet windows? Response windows? Child? Popup? It might help us if you would paste a picture of at least a part of the same window from both workstations so that we can SEE the issue. Thanks.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 August 2023 15:46 PM UTC
  2. PowerBuilder
  3. # 5

Hi Dean;

   FYI: in PB 2019 Appeon used the Microsoft C++ v2010 compiler. In PB 2022, Appeon used the Microsoft C++ v2019 compiler. If you look at the 2022 release notes, there is a section on window resizing changes. This will most likely require you to refactor your resizing code.

  PS: in PB 2022 R2, Appeon is now using the Microsoft C++ v2022 compiler. So far in my STD Framework, that did not cause me to refactor any resizing code but in 2022 I did have to tweak it.  HTH

Regards.... Chris 

Comment
There are no comments made yet.
Dean Helsley Accepted Answer Pending Moderation
  1. Tuesday, 22 August 2023 15:42 PM UTC
  2. PowerBuilder
  3. # 6

Sorry.  I would have put that in the original message, but our VM's should be exactly the same.  I had the other developer check his and this is what I found:

Mine

Edition Windows 10 Enterprise
Version 22H2
Installed on ‎6/‎15/‎2021
OS build 19045.2130
Experience Windows Feature Experience Pack 120.2212.4180.0

His

Edition Windows 10 Enterprise
Version 22H2
Installed on ‎5/‎26/‎2021
OS build 19045.2006
Experience Windows Feature Experience Pack 120.2212.4180.0

Our VM's are maintained at a corporate level.  I'm not sure why mine would be different, however I'd be shocked if such an incremental update would make a difference in window rendering.

 

Comment
  1. Miguel Leeuwe
  2. Tuesday, 22 August 2023 17:13 PM UTC
Hmm, don't think that the problem would be caused by this than. I was more thinking of Windows 10 vs. 11 maybe.

Just guessing, sorry.
  1. Helpful
  1. Dean Helsley
  2. Tuesday, 22 August 2023 17:30 PM UTC
No need to apologize. I'm grasping at straws right now. We didn't have this problem in 2019 or any version this app has run on since I started at this company 17 years ago.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 22 August 2023 15:19 PM UTC
  2. PowerBuilder
  3. # 7

Hi,

Which version of windows are you running and which version of windows are "they" running?

 

Comment
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.