1. Gordon Weil
  2. PowerBuilder
  3. Wednesday, 18 January 2023 16:54 PM UTC

I have a PowerBuilder 17 application that occasionally sets window height and width to a specific value.

I am converting the application to PowerBuilder 2022.

In the PowerBuilder 2022 code, whatever I set the window height to, it is always 40 units larger. Whatever I set the window width to, it is always wider. If I happen to use the previous value to calculate the next value, the window gets larger and larger every time I set it because the code written for PB17 expected the actual value to be identical to the set value but in PB22 the actual value is always larger than the set value.

I do not have this problem with window controls, only the actual window. Window controls behave the same as they did in PB17.

So in PB17, the statement "aWindow.Height = 1000" will make aWindow.Height equal to 1000. In PB22 "aWindow.Height = 1000" will will make aWindow.Height equal to 1040.

How do I get PB22 to have window height set to the value I assign it?

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 18 January 2023 19:21 PM UTC
  2. PowerBuilder
  3. # Permalink

Bug 8888 fixed in build 1892.

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 18 January 2023 20:16 PM UTC
Hi Roland;

I think that the bug (my guess) in ticket #888 is related but not exactly the same - OR - the bug was "sort of fixed" depending on the Window type in 1892 but not the whole solution

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 January 2023 19:02 PM UTC
  2. PowerBuilder
  3. # 1

Hi Gordon;

  FWIW: From my own STD Framework experience, the Resizing works OK from a Post Open event vs the Window's Open event. In the Open event in PB 2022, the Window instantiation is not yet 100% complete. So when the Open event fires the Width & Height are not yet 100% accurate.

  From the PB 2022 documentation ... If you want to handle the Width & Height though in the Window class OPEN event ...

https://docs.appeon.com/pb/upgrading_pb_apps/Window_size_differences.html

  Note1: an active Theme may also change the Width & Height dynamics.

  Note2: Appeon engineering is looking at this issue.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 18 January 2023 17:00 PM UTC
  2. PowerBuilder
  3. # 2

Hi,

Yes this is known bug and if I'm not mistaken Appeon is working on it.

regards.

Comment
There are no comments made yet.
Gordon Weil Accepted Answer Pending Moderation
  1. Thursday, 19 January 2023 18:56 PM UTC
  2. PowerBuilder
  3. # 3

I installed the latest MR and recompiled with the 1892 runtime. That seems to have fixed the problem.

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 19 January 2023 21:52 PM UTC
Hi Gordon ... Thanks for the feedback & great news! :-)
  1. Helpful
There are no comments made yet.
Eduardo G. Accepted Answer Pending Moderation
  1. Wednesday, 25 January 2023 14:09 PM UTC
  2. PowerBuilder
  3. # 4

I just hope they get it sorted out as quickly as possible:

In PB2021

In PB2022

As you can see the windows are now smaller after the migration to PB2022.

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 25 January 2023 15:53 PM UTC
Please open a support ticket with your test case. Thanks!
  1. Helpful
  1. Gordon Weil
  2. Wednesday, 25 January 2023 15:57 PM UTC
Eduardo,



One of the previous comments to the thread referred to this change. See https://docs.appeon.com/pb/upgrading_pb_apps/ch04s02s02.html



I'm unclear on the basis of this change, but the gist as I understand it is that converting to PB2022 will in some cases reduce the height of Main and Response type windows. The reduction will be 20 PBUs. I think that the issue I ran into was an unintended side-effect of this change and the issue I had was fixed by the latest MR. I am unclear whether the change due to migration that you found is a bug. It sounds more like a feature and I suspect it is not something Appeon plans to change.
  1. Helpful 1
There are no comments made yet.
David Gauthier Accepted Answer Pending Moderation
  1. Thursday, 16 November 2023 19:40 PM UTC
  2. PowerBuilder
  3. # 5

not a response but more fuel for the fire;

 

via PB-2021 Build 1509
 
 
via PB-2022 R2 2828
 
 
code(with actual y coordinate values from IDE)
Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 16 November 2023 20:04 PM UTC
  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.