Hello Pb users,
Many of our customers are starting to complain about the strange opening and sorting behavior of open windows with Powerbuilder 2017 and Windows 10.
Sometimes, when they open a new process, an already open window comes first and hides the new opening window.
All these problems are not reproducible each time.
The only thing we can see at the moment is that when we open several Powerbuilder applications and several windows in each one, some long instructions generate a reorganization in the already open windows.
So we try to do a systematic test.
An idea of what we need to look for? PowerBuilder? Windows 10? Memory?
Jeff
After your App opens a window have you tried ...
<WindowName>.SetPosition(TopMost!) // ie: MDI Frame
// - OR - SDK function ...
SetWindowPos(long hwnd, long hmode, int ix, int iy, int cx, int cy, ulong flags) LIBRARY "USER32.DLL"
"Flags" values ...
CONSTANT long HWND_TOP = 0
CONSTANT long HWND_BOTTOM = 1
CONSTANT long HWND_TOPMOST = -1
CONSTANT long HWND_NOTOPMOST = -2
HTH
Regards ... Chris