Kbase P122686: 4GL/ABL: Microsoft File Selection Dialog is displayed behind the Progress Dialog Frame that invoked
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/01/2009 |
|
Status: Verified
SYMPTOM(s):
4GL/ABL: Microsoft File Selection Dialog is displayed behind the Progress Dialog Frame that invoked it.
Calling the Windows API function GetOpenFileNameA from a Progress Dialog causes the Microsoft File Selection Dialog to be realized behind the Progress Dialog.
Microsoft Multiple File Selection Dialog is displayed under the Progress Dialog Frame from which it was launched.
FACT(s) (Environment):
Windows
Progress 9.x
OpenEdge 10.x
CAUSE:
The code logic was parenting the Microsoft File Selection Dialog Box to the CURRENT-WINDOW, that is, the Window that spawned the Progress Dialog Box FRAME and not to the Progress Dialog Box FRAME itself. Specifically, the code involved the statement: PUT-LONG (lpOfn, 5) = CURRENT-WINDOW:HWND.
FIX:
Change the code to ensure that the Microsoft File Selection Dialog Box is parented by the Progress Dialog Box FRAME itself. For example, Specifically change the above statement to: PUT-LONG (lpOfn, 5) = FRAME Dialog-Frame:HWND.
Alternatively, set the Progress Dialog Box FRAME SENSITIVE attribute to FALSE before invoking the Windows API function GetOpenFileNameA.