1. Marcelo Gil
  2. PowerBuilder
  3. Tuesday, 2 February 2021 00:56 AM UTC

When I apply a Theme, windows can be resized by clicking on the border, even when the window's resizable property is disabled. Any ideas ?

in the first image when I click on the border (painted yellow) it can make the window smaller as seen in image 2. The Resizable property of the window is false.

 

Mark Jones Accepted Answer Pending Moderation
  1. Tuesday, 26 April 2022 14:17 PM UTC
  2. PowerBuilder
  3. # 1

Here is a testbed application that shows the issue the resizable response windows not working with a theme applied.  We are using PB2021 Build 1288

If you run the test bed app (no theme), select Application Themes and click the response window button in the top right corner it opens a resizable response window.   If you then close that response window and select a theme using the two dropdowns (path and file) and open the resizable response window a second time the resizing no longer works.   

 

Mark Jones

Attachments (1)
Comment
  1. Ken Guo @Appeon
  2. Wednesday, 27 April 2022 02:07 AM UTC
Hi Mark,



I downloaded your case. This is not supported at this moment.

A standard response window itself is not capable of resizing. The resizing in your case is actually implemented by using Windows API SetWindowLongW to modify the window class underlayer. When a theme is enabled, PB will always process it according to standard response window features so it’s not resizable. So resizing is not supported in this scenario.



To better improve the adaptability of the UI Theme, I will submit this scenario of yours as a requirement to the development team for analysis.



Regards,

Ken
  1. Helpful 1
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 27 July 2021 06:57 AM UTC
  2. PowerBuilder
  3. # 2
Hi Marcelo,

Thanks for upload the test case. I tested it in PB 2019 R2 and I can reproduce the issue there, but when I tested in PB 2019 R3 2703, the issue is gone.

I suggest you upgrade to PB 2019 R3 Build 2703 and try again.

Regards,
Ken
Comment
  1. Marcelo Gil
  2. Tuesday, 27 July 2021 12:02 PM UTC
Hi Ken,



The problem is that I do not have a PB 2019 R3 license. Can I solve it in 2019 R2 somehow?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 27 July 2021 15:34 PM UTC
If you have 2019 R2 you also have 2019 R3… the license is subscription not tied to a particular version. Based on what Ken said, you need to upgrade if you want this problem fixed.
  1. Helpful
There are no comments made yet.
Marcelo Gil Accepted Answer Pending Moderation
  1. Monday, 26 July 2021 12:56 PM UTC
  2. PowerBuilder
  3. # 3

Hi Ken! Thanks for your answer. I attach an example with the case. The windows windows_a & windows_b inherit from w_basica. When I do not apply any "Theme" the windows are not resized, but when I apply it, they can be redirected by dragging them from the edge. Thank!

Attachments (1)
Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Monday, 26 July 2021 03:50 AM UTC
  2. PowerBuilder
  3. # 4

Hi Marcelo,

I built Popup Window_a and inherited Window_b (please see attached) based on your description but neither of them reproduced the issue.
Could you provide a reproducible small case for us? Otherwise, we couldn’t further analyze or address the issue.

Regards,
Ken

Attachments (1)
Comment
There are no comments made yet.
alessandro feltrin Accepted Answer Pending Moderation
  1. Friday, 23 July 2021 17:14 PM UTC
  2. PowerBuilder
  3. # 5

I have a similar case.
I use a userobject with some script to allow the resize of the userobject.

constant long WS_THICKFRAME = 262144
constant long WS_SYSMENU = 524288

nv_numerical lnv_num
long ll_Styles

tHIS.Border = True

ll_styles = GetWindowLongw (handle (THIS), -16)

if ll_styles <> 0 then
ll_styles = lnv_num.of_BitWiseOr (ll_styles, WS_THICKFRAME)
SetWindowLongW (handle (THIS), -16, ll_styles)
end if

This script allow my userobject to be resizeable.

Without using ApplyTheme everything works, but when I apply it, nothing works anymore.

 

 

Comment
  1. Marcelo Gil
  2. Friday, 23 July 2021 18:57 PM UTC
My case is simple. I have a window windows_a type popup! with a menu, with the Resizabled property disabled. Another window windows_b inherits from windows_a also with the Resizabled property disabled. There is no code that changes this property. Without applying some "Theme" windows_a and windows_b cannot be resized. When I apply a "theme" both can be resized.
  1. Helpful
There are no comments made yet.
Marcelo Gil Accepted Answer Pending Moderation
  1. Tuesday, 2 February 2021 13:01 PM UTC
  2. PowerBuilder
  3. # 6

Sorry, PB 2019 R2 Build 2353. 

The windows properties are this

When I apply a Theme (Blue for example), the border of the window is drawn in blue and when I click and drag on it the window is resized, which I don't want. This only happens when I apply a theme.

 

 

 

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 2 February 2021 21:40 PM UTC
Please provide a reproducible test case and open a support ticket as requested. Otherwise, we are not going to be able to help you.
  1. Helpful
  1. Ken Guo @Appeon
  2. Thursday, 4 February 2021 01:50 AM UTC
Hi Marcelo,



I created a case according to your screenshot and tested it using PB 2019 R2 & R3 but can’t replicate the issue.

Can you reproduce the issue if you create a new small case? If yes, please send this small case for us so that we could further analyze it.

Hope you can understand.



Regards,

Ken

  1. Helpful
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 2 February 2021 05:21 AM UTC
  2. PowerBuilder
  3. # 7

Hi  Marcelo,

 

We created a similar case according to your description but can’t reproduce the issue.

If you can always replicate the issue on your end, please go to the Appeon Support website to submit a bug (https://www.appeon.com/standardsupport/newbug) along with a small reproducible case for us to further analyze. Thanks in advance.

 

Regards,

Ken

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 2 February 2021 01:15 AM UTC
  2. PowerBuilder
  3. # 8

Hi Marcelo;

   What PB version & build are you using?

If this is a reproducible issue, then please open a support ticket.

Regards ... Chris

Comment
  1. Marcelo Gil
  2. Tuesday, 2 February 2021 12:39 PM UTC
Hi Chris



Hello Chris! I am testing PB 2019 R2.

Regards

Marcelo
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 2 February 2021 15:40 PM UTC
FWIW: I tried with R2 this AM and could not reproduce your issue.
  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.