1. alessandro feltrin
  2. PowerBuilder
  3. Friday, 23 July 2021 17:20 PM UTC

I have a theme related issue in PB 2019R3.

I use a userobject with some script to allow (force) the resize of an 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.

Normally (without themes) everything works fine. When I apply a theme, nothing works anymore, it no longer resizes the object!

 

 

Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Monday, 26 July 2021 03:42 AM UTC
  2. PowerBuilder
  3. # 1

Hi Alessandro,


Sorry to let you know that this is not supported at the moment.
For a standard PB object, if it is not resizable itself, such as Response Window, you need to change the base class of the Window via Windows API SetWindowLongW (handle (THIS), -16, ll_styles) to make it resizable

However, when you Apply Theme, it will ignore the Windows API modification for this Response Window and still consider it as a standard PB object in UI drawing so it’s no longer resizable.

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

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.