1. Bernhard Giesriegl
  2. PowerBuilder
  3. Wednesday, 19 October 2022 07:45 AM UTC

Hello,

in (1) you see a dialog in the painter, notice the small gaps between the objects and the window margin (right, bottom).

When I bring the dialog in preview mode (or it is shown in the software after starting), there is a gap on the right side and on the bottom (2)

When dialogs Resizeable property is turned on, the gap disappears (3)

Any suggestions, that the gap disappears also when Resizeable is off?

Thanks in advance,

Bernhard

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 20 October 2022 05:59 AM UTC
  2. PowerBuilder
  3. # Permalink
Hi Bernhard, This is a known issue and engineering is working on it. Hopefully, it should be resolved in the upcoming MR (maintenance release).
Comment
  1. Jim Reese
  2. Friday, 6 January 2023 16:42 PM UTC
Is this the behavior that is documented here: https://docs.appeon.com/pb/upgrading_pb_apps/ch04s02s02.html

"Increased window size

The client area of windows (including Popup, Child, Response, and Main) will become bigger in version 2022 when resizable=false."



If so, is your comment regarding a fix in upcoming MR still applicable, or is this something we just need to address when the new sizing is a problem when migrating to PB 2022?
  1. Helpful
  1. Mark Lee @Appeon
  2. Monday, 9 January 2023 02:04 AM UTC
Hi Jim & Bemhard,



Yes. This is a difference that users need to be aware of when upgrading to PB 2022. Depending on the user scenarios, it shouldn't require code changes to all affected places.



Please upgrade to PB 2022 Build 1892, which has fixed some errors in this area. But still, there will still be the difference as described in the documentation: https://docs.appeon.com/pb/upgrading_pb_apps/ch04s02s02.html



Regards,
  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 10 January 2023 15:41 PM UTC
  2. PowerBuilder
  3. # 1

Hi Bernhard;

   FYI: My STD Framework had no resizing issues moving to PB2022. The key here (I believe) and why the old resizing code works in my framework is that it only performs the resizing on a POST Open event. You can (and should) not trust the Open Event as the Window class has not fully completed it's instantiation processing. This is particularly noticeable in PB 2022 as it's written in Visual C++ 2019 vs C++ 2010 in earlier PB versions. I have encountered many variations of these type of changes across the many PB versions of PB (since 2.0). That is why I always recommend never using the Open or Constructor events for PowerScript coding. Only use POSTed Open & Constructor events for your PB App's actual use.

Food for thought.  HTH

Regards ... Chris

Comment
  1. Bernhard Giesriegl
  2. Tuesday, 7 February 2023 13:39 PM UTC
Hi Chris,

that's a very important information, (very late) thanks for this!



Regards, Bernhard
  1. Helpful 1
There are no comments made yet.
Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Wednesday, 19 October 2022 12:48 PM UTC
  2. PowerBuilder
  3. # 2

Thanks,

it's PB 2022 1878.

It's a workspace migrated from PB 2017 without changes.

On PB 2017 I couldn't see this behavior.

On both Versions border is checked and not enabled for change.

 

So why this happens on PB 2022 and not in PB 2017?

 

Regards,

Bernhard

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 19 October 2022 12:23 PM UTC
  2. PowerBuilder
  3. # 3

Hi Bernhard;

  Please always indicate the PB version & build that you are using.

   Basically, the size change is a reflection of the Window "border" being there or not.

Regards ... Chris 

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.