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!
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!
Avory,
In the other thread, Mark Lee has given a solution, based on eon_appeon_resize object. The project is based on PB 2022.
Can you check whether it satisfies your requirement?
Happiness Always
BKR Sivaprakash
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.
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.
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
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
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
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