Trying to add the Appeon resize service to an app and struggling. If I allow all objects within a window to be default resize state (don't use of_setflag to make any changes) then works fine. But if I make any changes to lock a dw so that its x and y positions do not change then that's where the headache comes in. Example I have two datwindows one above the other. If I lock the X and Y position of datawindow 1 (of_setflag(dw1,'0011') so that it does not move and leave datawindow 2 to its default resize state. Datawindow 2 will overlap datawindow 1 (dw above it). I have tried changing datawindow 2 using the of_setflag to many variances with no luck, what would be the appropriate setting in the of_setflag function that would prevent the overlap but still allow resize appropriately. Is there additional functions that need to be called/set to prevent the overlap?
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- Appeon Resize object - Overlapping datawindows
- David Vasconcelos
- PowerBuilder
- Friday, 4 September 2020 13:40 PM UTC
- Friday, 9 October 2020 14:58 PM UTC
- PowerBuilder
- # 1
I particularly enjoyed this line from John's article:
"I’ve created an easy-to-follow methodology you can use to make the Resize service do what you want instead of the Resize service making you to do what it wants."
- Thursday, 10 September 2020 14:40 PM UTC
- PowerBuilder
- # 2
I'm doing a presentation for Elevate2020 on breaking the pfc resize service out of the pfc to use it standalone. I'll be adding the code to CodeXchange as well. In general, if I have 1 datawindow above another, I set one of them (usually the top) to only expand to the side (scaleright) and let the other expand to scale (scalerightbottom). That way you don't get the overlap issue.
- John Fauss
- Monday, 14 September 2020 02:57 AM UTC
If you're interested, please send me an email at: jfauss-at-cox-dot-net..
-
Helpful Loading... Helpful 0
- Kevin Ridley
- Monday, 14 September 2020 13:26 PM UTC
I may take you up on that. I'm currently finishing up the resize presentation, but I'm also doing 2 other presentations which I haven't started yet, so it's doubtful I'll have time to check out your code before Elevate. I appreciate the heads up. If I have time I'll shoot you an email. Thanks.
-
Helpful Loading... Helpful 0
- Monday, 7 September 2020 20:44 PM UTC
- PowerBuilder
- # 3
This sounds precisely like how the PFC Resize service works. As long as the window is basic, with a single DW on it as the ideal, then the service works easily and perfectly.
More complex windows or visible objects, though, are a bloody nightmare. I have found that in those cases I need to manually code the Resize service to accurately control the size of the objects being resized.
I would really like to have a genuinely useful RESIZE() service. I wonder if someone out there has such a creature! :)
Good Luck -
Olan
- Olan Knight
- Monday, 14 September 2020 16:33 PM UTC
That sounds amazing! Can you post it as an article in the Forums?
Thank You,
Olan
-
Helpful Loading... Helpful 0
- John Fauss
- Friday, 9 October 2020 14:15 PM UTC
-
Helpful Loading... Helpful 0
- Olan Knight
- Friday, 9 October 2020 14:55 PM UTC
And....it sounds like this would make an excellent presentation at the next Elevate! conference. :)
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.