1. Diego Buschittari
  2. PowerBuilder
  3. Wednesday, 30 January 2019 21:08 PM UTC
Hello I would like to know if it is possible to maximize a window, 
maximizing the objects that it contains proportionally
in the version PB 2017 R2. Thank you.
Rajkumar K S Accepted Answer Pending Moderation
  1. Wednesday, 6 May 2020 10:18 AM UTC
  2. PowerBuilder
  3. # 1

Hi Kevin,

 

Is there any sample non pfc code for the above ask

 

Regards

Rajkumar K S

Comment
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 30 January 2019 23:59 PM UTC
  2. PowerBuilder
  3. # 2

I broke out some of the functionality of the pfc resize service into a basic non pfc service.  Shoot me a reply if you want some sample code on how to use it.  I basically set it up as an instance var on my ancestor window with an of_setresize(boolean) function to instantiate it.  Then you basically register every object on the window that you want to resize.  Then in the resize event of that base window, you just call the pfc_resize event on the service (if it's valid/instantiated).  Registering the objects is easy, just call the of_register function passing the object and the way you want it to resize, for example inv_resize(dw_1, inv_resize.scalerightbottom).  Don't forget to destroy the service object on close or call of_setresize(FALSE) on the window - obviously you'd have to put code in that window function to create the object if true and destroy it if false and valid.

These objects are 2017R3, so if they don't import for R2, let me know and I'll export from my 12.5 version.  Import the n_resizeattrib first.

 

Kevin

Attachments (1)
Comment
  1. Diego Buschittari
  2. Thursday, 31 January 2019 13:48 PM UTC
Thank you Kevin!! now I'm going to try it if it works in 2017 R2 and I let you know
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 30 January 2019 21:10 PM UTC
  2. PowerBuilder
  3. # 3

Are you using PFC? The PFC has a resize service that can handle this.

 

Comment
  1. Diego Buschittari
  2. Wednesday, 30 January 2019 21:21 PM UTC
Thank you Roland, No, I'm not using PFC.
  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.