Consultor Eletrônico



Kbase P17174: MOVE-TO-TOP is not working properly
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/5/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

MOVE-TO-TOP is not working properly

KEEP-FRAME-Z-ORDER is true

not using ALWAYS-ON-TOP or TOP-ONLY

running simple windows (no smart objects)

all windows running persistently

global shared variable as handle

FIX:

The work-around we are using is to use window-state to

1. When starting a new window, save the window-handle in an array(i = i + 1.
g-windows[i] = c-win:handle).
2. Before starting next window, minimize the current window
(g-window[i]:window-state = 2.)
3. When exiting a window, maximize the window you came from (i = i - 1.
g-windows[i]:window-state = 3.)

(i and g-windows are shared variables).

I think the same method should work for MOVE-TO-TOP, instead of minimizing and maximizing you should be able to do: g-windows[i]:move-to-top(). in step 3 but as I said it's not working most of the time.