1. Colin Cruikshank
  2. PowerBuilder
  3. Thursday, 12 August 2021 14:49 PM UTC

Hi,

Working on modernizing a legacy application, and would like to make use of the UI themes. The app makes use of windows APIs to allow its response windows to be resizable ( SetWindowLong(), GetWindowLong() ). Upon applying the UI theme, the resizable response window code stops working. If I turn off the drawing on the window theme, the resizing works again ex:

"window": {
     "drawing":false }

Anyone else come across this issue? As a side note, the app does not use PFC, so the preference is for a solution (if one exists) outside of that framework.

PB Version 2019 R2 Build 2328

Thanks,

 

Colin

Accepted Answer
Chris Pollach Accepted Answer Pending Moderation
  1. Friday, 13 August 2021 02:04 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Colin;

   My STD Framework uses a similar approach to make any Response window class resizable. The Theme feature in PB2019Rx and PB2021 disables this behaviour. You are correct in that not only does the Theme feature interfere with resizing, it is also now a broken feature used by countless PB Apps!

  I would suggest that you open a support ticket for this issue.

Regards ... Chris

Comment
  1. Roland Smith
  2. Friday, 13 August 2021 12:07 PM UTC
Even better, make response windows resizable natively. That way the internal theme code would be aware of the setting.
  1. Helpful
  1. Colin Cruikshank
  2. Friday, 13 August 2021 12:36 PM UTC




Good to know, thanks Chris. I'll submit a support ticket.



Roland - totally agree, it would be great if they were resizable out the box. Futzing around with Windows APIs to do something like this just feels wrong.



Case closed.

  1. Helpful
  1. Chris Pollach
  2. Friday, 13 August 2021 13:45 PM UTC
Good point Roland.

Also, Themes make the window borders hard to grab to resize & there is no grab bar on the lower RH corner. These issues also make all Themed windows harder to use resize wise.
  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.