1. David Vasconcelos
  2. PowerBuilder
  3. Friday, 4 September 2020 13:40 PM UTC

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?

Olan Knight Accepted Answer Pending Moderation
  1. Friday, 9 October 2020 14:58 PM UTC
  2. PowerBuilder
  3. # 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."


Comment
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 14:40 PM UTC
  2. PowerBuilder
  3. # 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.

Comment
  1. John Fauss
  2. Monday, 14 September 2020 02:57 AM UTC
Kevin - Please see my response to David and Olan's comments in the earlier post in this thread. You are welcome to review the methodology I've created and utilize any of it as you deem appropriate (or none of it, for that matter). I've also adapted code from Roland Smith's resizeable response window free code example from his TopWizProgramming.com web site that sets and enforces a minimum size percentage of any resizeable window (not just a response window) and you are welcome to this, also.

If you're interested, please send me an email at: jfauss-at-cox-dot-net..
  1. Helpful
  1. Kevin Ridley
  2. Monday, 14 September 2020 13:26 PM UTC
Hi John,

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.
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Monday, 7 September 2020 20:44 PM UTC
  2. PowerBuilder
  3. # 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

 

Comment
  1. Olan Knight
  2. Monday, 14 September 2020 16:33 PM UTC
John -

That sounds amazing! Can you post it as an article in the Forums?



Thank You,

Olan

  1. Helpful
  1. John Fauss
  2. Friday, 9 October 2020 14:15 PM UTC
As you wish, Olan. A new article titled "A Simple Methodology for Complex Resizing Scenarios Using the PFC" is now available in the Articles & Blogs portion of the Appeon Community website, under Tutorials, then PowerBuilder. There is a small sample PB/PFC application available in CodeXchange that accompanies the tutorial. I hope you find them helpful.
  1. Helpful
  1. Olan Knight
  2. Friday, 9 October 2020 14:55 PM UTC
Absolutely marvelous, John! Thank you very much for this!



And....it sounds like this would make an excellent presentation at the next Elevate! conference. :)
  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.