Hi, Reji -
Kevin Ridley gave a presentation in Elevate 2020 on how to extract the Window Resize service objects from the PowerBuilder Foundation Class libraries, then subsequently posted in CodeXchange a sample app that contains these extracted objects:
https://community.appeon.com/index.php/codeexchange/powerbuilder/268-pfc-resize-without-pfc
A replay of Kevin's presentation is available here (the session is listed roughly at the middle of the list):
https://www.appeon.com/conference/elevate-2020/session-catalog.html
As Chris indicated, the Window Resize service does not perform any resizing of the DW objects within a DataWindow. For that, you need the similar, yet distinct DataWindow Resize service objects. Kevin also has a sample app posted in CodeXchange for this functionality:
https://community.appeon.com/index.php/codeexchange/powerbuilder/323-pfc-resize-without-pfc-part-ii-dw-resize
If you are not familiar with the PFC's Window Resize service, there is a PowerBuilder tech article that describes a simple methodology for implementing complex resizing scenarios:
https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/315-the-pfc-resize-service-complex-resizing-via-a-simple-methodology
The above article assumes you are using the PFC. However, the objects that Kevin has extracted utilize the same methods, so the same coding techniques apply. Finally, there is an example application in CodeXchange that accompanies that tech article:
https://community.appeon.com/index.php/codeexchange/powerbuilder/265-pfc-resizing-example-application
If you are not familiar with the Tech Articles and/or CodeXchange areas of the Appeon Community, I encourage you to invest a little time to see what these areas contain!
Best regards, John