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?
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."
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..
- 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.
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 -
- John Fauss
- Friday, 9 October 2020 14:15 PM UTC
- Page :
However, you are not allowed to reply to this question.