1. Haihong Yang
  2. PowerBuilder
  3. Friday, 19 February 2021 15:28 PM UTC


We have PowerBuilder 2019 R2 application and deploy to Citrix. But recently have issue that when open window from the link of another window, the window opened not on top, but at the bottom of existing window. We do not have code change for those windows. Does anybody knows what cause this issue?


Thanks in Advance  

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 19 February 2021 17:57 PM UTC
  2. PowerBuilder
  3. # 1

Hi Huang;

   Have you tried using the "SetWindowPos" SDK API call to correct this?

FYI ...

FUNCTION ulong SetWindowPos ( ulong hwnd, ulong hwndAfter, &
    ulong xPos, ulong yPos, ulong cX, ulong cY, &
    ulong wFlage ) &
    library "user32.dll"

FWIW: I have used this API in my STD Framework for over a decade now with no issues. Even in 64bit Apps. ;-)


Regards ... Chris

  1. Olan Knight
  2. Friday, 19 February 2021 20:04 PM UTC
Great resolution, Chris!

What's the actual call to the API look like?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 19 February 2021 20:28 PM UTC
Hi Olan;

FYI: http://programmingmethodsit.com/123-tips-tricks-of-powerbuilder

Check out tip # 83

Regards ... Chris
  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.