Bug 4999

Opening response window in second monitor 21 November, 2021

Guilherme Olivera
29 July, 2020
Product: PowerBuilder Category: Controls & UI
Version: 2019 R2 Build:
Classification: Sybase (legacy) bug Publishing: Public
Priority: P3
Status: Verifying Reason:
Communication Status: Waiting for Customer
Mark Lee @Appeon 21 November, 2021
Hi Aukur,

We have been trying to keep in touch with you to find out about the resolution of this issue, we would like to continue with our support but without more information, we are in the need to close it in the next 3 working days, according to our internal help support policy but please remember you can always open a new ticket.  

Mark Lee
Mark Lee @Appeon 04 November, 2021
Hi Ankur,

I'm just touching base with you about this ticket.  
Did we provide you with enough information to resolve this issue?. 

Please let us know if there is something else to support you with.  
Remember that you can always open a new ticket if need it. 

Mark Lee
Mark Lee @Appeon 08 July, 2021
Hi Aukur,

I would like to check with you if the response provided has been helpful enough to resolve your case. If so, can we proceed to close the ticket?. Otherwise, please let us know if we can provide you with any further assistance, remember that you can always open another ticket any time you need it. 

Mark Lee
Mark Lee @Appeon 01 April, 2021
Hi Ankur,

Thanks for your feedback.
Please confirm whether the PB version you are using is PowerBuilder 2019 R3 GA (build 2670) and the Runtime files in the client side are also with this same version.
If yes, and you still have problems after doing the above, we may schedule a meeting to remotely debug it. We would recommend you to make the remote session during our working time which is 9:00 ~ 17:00 (we are in UTC+8) thus we can get immediate help from other teams if necessary. Please let us know when you can make the session and which tool you'd like to use for this session (TeamViewer or GoToMeeting).
If you can’t have a meeting with us, please provide a video for us to further analyze. Thanks in advance.
Best regards,
Mark Lee
Ankur Patel 01 April, 2021
Hello Appeon Support Team,

It looks like due to this change, the response window still opens in the primary screen but then moves to second monitor and we can see it opening in the primary monitor and then moving to the second monitor which looks really bad.

Please let me know if you need a video for the same.

Ankur Patel
armando.herrera 19 February, 2021
Hi Guilherme,

This case is reported as fixed in our new PB2019R3 build2670.
Can you please help us to confirm it so we can conclude this ticket?

Mark Lee @Appeon 24 January, 2021
Hi Guilherme,

Good news that PowerBuilder 2019 R3 GA (build 2670) is available for download. The issue you reported has been fixed in this release. Please download and install it to verify the issue you reported and let us know if any problems. You can get the installer from our Downloads portal at https://account.appeon.com/download/2019 (login required).
We welcome all feedback from you!
Mark Lee
Guilherme Olivera 03 August, 2020
Thanks Mark

I will check this code in my project

Mark Lee @Appeon 03 August, 2020
Hi Guilherme,

Thanks for reporting this problem.
We can reproduce it on our side and will do further research to figure it out.
We will keep you updated!
BTW, we found that PB 12.6 has the same behavior as well.
You can temporarily add the following code in open event in your response windows to work it around:

environment le_main
integer                  li_return 
long                                       ll_width, ll_heiht
li_return = GetEnvironment(le_main)
ll_width = PixelsToUnits( le_main.screenwidth, XPixelsToUnits!) / 2 + this.width / 2    //The second monitor is in the left side.
ll_heiht = PixelsToUnits( le_main.screenheight, YPixelsToUnits!)   / 2  - this.height / 2
this.function post move(-ll_width,ll_heiht)

Mark Lee
Guilherme Olivera 31 July, 2020
Thanks for your help Armando

I already downloaded this application, but it didn't seem to be something that works with different monitors positioned in different situations, something more practical is needed.

Do you have any code examples maybe from the engineers?
armando.herrera 31 July, 2020
Hi Guilherme, 

Yes, of course! 

Tutorial on Building an MDI Application: 

You can see this being done in the OrderEntry example App (that uses the STD Framework), that utilizes this approach. 

Please let us know your results! 

Guilherme Olivera 31 July, 2020
Could you give an example how i can do this?
armando.herrera 31 July, 2020
Hi Guilherme,

Thank you very much for the video.

This issue has been reported and marked as a Bug as a workaround and I'm transferring this case to the Engineering Team for their evaluation. 

You can control your own Response & Pop-Up windows to center on your App's main control window - like an MDI Frame.

Guilherme Olivera 29 July, 2020
General.mp4 (6737KB)

Here the video!,
Govinda Lopez @Appeon 29 July, 2020
Hi Guilherme,

Can you provide us with that simple video so we can further analyze this?

armando.herrera 29 July, 2020
Hi Guilherme, 

Thank you very much for your report. We are working on it and we will get back to you after analyzing it.

We'll keep you posted here!

Guilherme Olivera 29 July, 2020
Sorry, but my question is, how i can fix this and open a second window in the same monitor
Guilherme Olivera 29 July, 2020
response.PNG (2846KB)

*Phenomenon: Opening a response window in second monitor

*Reproduce Steps: 

1 - Create a project with a 2 windows,  
1.1 - The first window with a button that open a second window by response
1.2 - The second window with response mode
2- The project open the first window (not response)
3-  Run the project
4-  Drag the first window to secondary monitor
5-  Click in the button to open the second window
6- Check the window was opened in the primary monitor  

i cant make a movie with two monitors, but i can invite the project to check
Database Type:
Database Version: