1. Peter Middlestorb
  2. PowerBuilder
  3. Wednesday, 8 March 2023 11:44 AM UTC

Hi, I have searched and read all posts marked "resizable border" before asking this.

When opening a sheet in an MDI frame..., window type main!, some resizable some not...

PB2019R2 renders the borders and display area as expected:

But PB2022 is OK for resizable but gives a thick (but not draggable) border for non-resizable and adds some unexpected window size.

The OH and OW values are .height and .width captured during the open even, and PH and PW are the values captured by a windows event posted from open.

Perhaps I have missed a new setting in PB2022?

Source attached.  Screen shots are from deployed code, but it behaves the same from the IDE in all cases.

Resizable is

integer x = 101
integer y = 100
integer width = 1038  (1001 in properties view)
integer height = 1104 (1000 in properties view)
boolean titlebar = true
string title = "Resize = true"
boolean controlmenu = true
boolean minbox = true
boolean maxbox = true
boolean resizable = true
long backcolor = 67108864

Non-resizable is

integer x = 101
integer y = 100
integer width = 1010  (1001 in properties view)
integer height = 1080 (1000 in properties view)
boolean titlebar = true
string title = "Resize = false"
boolean controlmenu = true
long backcolor = 67108864

Cheers!

[END]

Attachments (1)
Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 8 March 2023 17:54 PM UTC
  2. PowerBuilder
  3. # Permalink

Please read the PB upgrade guide it outlines some changes regarding window sizes: https://docs.appeon.com/pb/upgrading_pb_apps/Window_size_differences.html

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 9 March 2023 18:50 PM UTC
It should be
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 9 March 2023 18:52 PM UTC
Thank you!
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 9 March 2023 21:37 PM UTC
You're very welcome!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.