1. Reji PR
  2. PowerBuilder
  3. Tuesday, 22 October 2024 08:14 AM UTC

Team, 

I am using PowerBuilder 2019 R3. I know that PowerBuilder has its own Resize.pbl for resizing objects/windows in PB application. Please let me know how i will get this PBL and also how to use in my PowerBuilder 2019 R3 source. 

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2024 13:42 PM UTC
  2. PowerBuilder
  3. # 1

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

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 October 2024 12:21 PM UTC
  2. PowerBuilder
  3. # 2

Hi Reji;

  That was actually an old copy of the PFC "resize" service that was adapted for use with the old & now deprecated Appeon Web product. I would suggest that you look at the current PFC (free) framework's resize service and adapt it for your use.

FYI: https://github.com/OpenSourcePFCLibraries

  The resize service is one of the many services that is encapsulated & thus, could be directly adapted for your use. Note that there are two resize services in the PFC. One for Window "controls" & one for DataWindow based objects.

HTH 

Regards ... Chris 

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.