1. Nayan Agravat
  2. PowerBuilder
  3. Wednesday, 8 December 2021 18:35 PM UTC

Dear Appeon Team,

 

How to resize response window. According to parent window.

Please help me for this find this solution. 

John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 8 December 2021 19:06 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Nayan - 

To make a PB response window resizable, you need to make use of a Windows API function, SetWindowLong. The thread below contains details and refers to other related threads as well.

https://community.appeon.com/index.php/qna/q-a/resize-a-single-pfc-window-inherited-from-w-response

Please note that making a response window resizable does NOT automatically make the contents of the window resize. That requires code. If your application is built upon the PowerBuilder Foundation Class (PFC) framework, there is a Window Resize service you can use for this. I'm pretty sure Chris's STD framework also provides similar functionality.

Late last week I published in the PowerBuilder section of CodeXchange a sample application for displaying PB enumerations, and this app contains a stand-alone version of a Window Resize service which is based off of the PFC implementation. You are welcome to make use of it if you wish. You can download this app in the CodeXchange section of the Appeon Community website.

Your comment "According to parent window." is a little cryptic, so I'm not sure what you mean. Please explain in more detail what you mean by this?

Best regards, John

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 8 December 2021 20:18 PM UTC
Hi John;

Nayan can get the code from my framework: https://sourceforge.net/projects/stdfndclass/files/FrameWork/Integrated

The object class is "wn_response_master" in the "STD_FC_PB_Base.pbl;" library. Have a look at the "Open" event for the code. The code starts at the "// Lets get ready to make it Resizable" comment.

Note that the framework also allows you to set a MIN and MAX resize limit too for any Window class. ;-)

Regards ... Chris
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 8 December 2021 22:35 PM UTC
  2. PowerBuilder
  3. # 2

Roland also has resizeable response window code on his site also:

https://www.topwizprogramming.com/freecode_resize_response.html

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.