1. Avory Rose Pastoral
  2. PowerBuilder
  3. Wednesday, 26 October 2022 07:17 AM UTC

Hi Appeon Community,

 

 

Is there any way I can achieved responsive window (even the object inside the window will expand base on the window size). Any advice are welcome and very much appreciated. Thank you! 

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Tuesday, 15 November 2022 13:59 PM UTC
  2. PowerBuilder
  3. # 1

Avory,

In the other thread, Mark Lee has given a solution, based on eon_appeon_resize object.   The project is based on PB 2022.   

https://community.appeon.com/index.php/qna/q-a/adjust-powerbuilder-application-size-with-screen-resolutions

Can you check whether it satisfies your requirement?

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
Avory Rose Pastoral Accepted Answer Pending Moderation
  1. Monday, 14 November 2022 03:03 AM UTC
  2. PowerBuilder
  3. # 2

No I'm not talking to the "responsive window" I'm trying to create a Normal window/ Main window that contains different kind of object like static test, single line edit that when i resize the window it will response the way the window resized. It will fit on what ever the width/ height of the main window. Just like how website behave if the window was resized. Thank you so much.

Comment
  1. Sivaprakash BKR
  2. Monday, 14 November 2022 05:20 AM UTC
Avory

As already pointed out, there is no native solution available. One need either to write his own code or use features available in PFC or use what Kevin Ridley has given (without PFC). His forthcoming session in Elevate-2022 is what you want, IMO.
  1. Helpful 1
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Friday, 28 October 2022 19:25 PM UTC
  2. PowerBuilder
  3. # 3

Yes I'm going to be doing a session in the upcoming Elevate 2022 that might be just what you are looking for.  I will be putting the code up on CodeXchange shortly.  I do have a question when you say "responsive window", you don't mean a window with a window type of "response!".  Resizing a response window is a whole different issue as they are not normally resizeable.  If that's what you're looking for, I will have a different reply, so just let us know.  If you are looking for all of the objects on a main window to resize including datawindows and also have the contents of the datawindow resize, then please tune in for my Elevate session and check CodeXchange once I add the code there.

Comment
  1. Kevin Ridley
  2. Friday, 28 October 2022 19:35 PM UTC
Here is a link to my Elevate 2020 presentation on resizing objects on a window:

https://www.youtube.com/watch?v=zPAnRMC-12c&t=9s



I'm planning to add to that in this year's presentation including the datawindow resize service.
  1. Helpful 2
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Friday, 28 October 2022 13:47 PM UTC
  2. PowerBuilder
  3. # 4

There is no readymade equivalent of responsive webpages, in Powerbuilder.  We need to code for that.   
In the coming elevate-2022 Kevin Ridley is having another session on this topic.

May be it interest you.

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 26 October 2022 19:39 PM UTC
  2. PowerBuilder
  3. # 5

If you are wanting to resize just the width and/or height of the controls within a window (DataWindow Controls, Tab Controls, command buttons, etc.) then either the PFC Resize service or the stand-along objects based on the PFC mentioned in Sivaprakash's response can do the job nicely with a minimal amount of coding. The tech article I published (that Olan graciously referenced previously) and the accompanying sample app in CodeXchange should be very helpful in showing you the possibilities.

However, if you are wanting to resize the point size of the (text) information being displayed within a window as it is resized, that is another matter entirely. as that is a much more difficult problem. The PFC also has a DataWindow resize service that purportedly does this, but I've never used it and therefore cannot speak to its effectiveness.

Best regards, John

Comment
  1. Kevin Ridley
  2. Friday, 28 October 2022 18:20 PM UTC
As Sivaprakash mentioned, I'm doing a session for Elevate 2022 on the dw resize service, similar to how I did the windows resize without the PFC. Please tune in if you have time.
  1. Helpful 2
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Wednesday, 26 October 2022 18:21 PM UTC
  2. PowerBuilder
  3. # 6

John Fauss wrote a fabulous article on resizing objects in PowerBuilder using the PFC.
     https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/315-the-pfc-resize-service-complex-resizing-via-a-simple-methodology

 

 

Comment
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Wednesday, 26 October 2022 08:26 AM UTC
  2. PowerBuilder
  3. # 7

You can check the CodeXchange 
https://community.appeon.com/index.php/codeexchange/powerbuilder/268-pfc-resize-without-pfc

This resizes only window and not objects inside dw.  I think this is what is available as of now.  One has to code themselves to re-size the objects inside dw.

Happiness Always
BKR Sivaprakash

 

Comment
  1. Avory Rose Pastoral
  2. Wednesday, 26 October 2022 09:01 AM UTC
Hello what I'm trying to achieve is like in web browser where all object will response according to the window size. Just asking if that is possible with powerbuilder application. Thank you!
  1. Helpful
  1. Roland Smith
  2. Friday, 28 October 2022 19:31 PM UTC
Not natively, you have to use a resize service object, either the PFC one mentioned or one of your own design.
  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.