1. Ramón San Félix Ramón
  2. PowerBuilder
  3. Friday, 11 March 2022 16:55 PM UTC

I've tried the example titled "PFC Resize without PFC" by Kevin Ridley (https://community.appeon.com/index.php/codeexchange/powerbuilder/268-pfc-resize-without-pfc#409) and it works fine for window controls, but I've tried to get resizing to work on datawindows and I can't get it to work.

It seems that when activating the service the call to the of_setrequestor() function to reference the datawindow in the instance variable is missing.

There is also nothing in the resize event of u_dw, the service should be called there...

With this I have activated the service in the open event of w_test.
I have tested it on dw_lower in the desc column.
I have tried to scale to the right without success. You have to enlarge the window a lot for the column to start scaling.
I don't know if I called the service wrong or if it works well.

I upload the example with what I have modified.

Can someone help me?

Attachments (1)
Accepted Answer
Ramón San Félix Ramón Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 12:23 PM UTC
  2. PowerBuilder
  3. # Permalink

I got the answer...

I leave the result here, where you can see how the desc column is resized in the lower datawindows.

(Example build in PowerBuilder 2019 R3 2728)

Attachments (1)
Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 11 March 2022 17:22 PM UTC
  2. PowerBuilder
  3. # 1

It sounds like you are concerned that Resizing based on the PFC's Resize service object resizes window controls, but it does NOT resize the contents of a DataWindow.

This is a design limitation of this functionality... The PFC Resize service does NOT support the resizing of DW objects within a DW data object. it is coded to operate only on DragObjects (i.e., window controls).

Comment
  1. Kevin Ridley
  2. Saturday, 12 March 2022 20:44 PM UTC
PFC has 2 resize services, 1 for windows controls and 1 for datawindows. My presentation was on the windows service, but I included the objects needed for the dw resize service, just not the code. I already explained this to Ramon in the codeXchange comments on the upload. I have gotten it to work on dw columns before in PB2017, but I don't have access to that code anymore and don't currently have the time to look into what code is needed. The service object in the PFC is pfc_n_cst_dwsrv_resize.
  1. Helpful 1
  1. Ramón San Félix Ramón
  2. Tuesday, 15 March 2022 12:21 PM UTC
I have gone to the code of the PFC and I have completed the example.

Thank you very much for your contribution to the community with this example.

  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.