- Christopher Craft
- PowerBuilder
- Wednesday, 2 June 2021 03:49 AM UTC
So after all these years I thought I was the only one that struggled with trying to get response windows to always be centered within the application no matter what monitor it is on but I am not! Looks like there are many posts out there ( Popup window position VS frame window position (appeon.com), Multiple monitor support? (appeon.com) ...).
I have implemented the ribbonbar and theme with our application (along with some other objects on the frame) and I am back to trying to get these windows to center correctly. I saw the link to Chris P's STD Framework which supposedly works perfectly but I cannot find that section of code. I also saw a note from Michael Kramer saying he found a way and was going to post it but I cannot find that either.
I am trying not to resort to a bunch of API calls because this should be doable with PB itself. I thought the simple 'Center' checkbox option was suppose to do all that for me but that has never worked. I have also tried all the WorkSpace calls as well as using the Frames X/Y positions but it just gets confused when the monitors are a different size.
Why is this so difficult? What is the magic code to get this to always work properly?!
Thanks again,
Chris Craft
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.