PDA

View Full Version : Dialog Show State



catventure
05-10-2008, 12:02
Hi,

After I reshow a hidden dialog window using DIALOG SHOW STATE the window does not seem to be "active" or have focus...
I've tried using DIALOG ENABLE and DIALOG REDRAW but it seems I have to physically click the window with the mouse to make it active so I can use the controls on it...

My question is: Is there a way to make the dlg window have focus automatically?

If there is way, I cannot remember or think what I should do :-\

Thanks in advance,
catventure

ErosOlmi
05-10-2008, 12:10
Hi catventure.

You can use WIN_SetForeground (http://www.thinbasic.com/public/products/thinBasic/help/html/win_setforeground.htm) to force your window to be the upper most in Z-order

Usually hiding and showing should do not change the z-order. Dialog is just placed in the same order it was before.
Minimize and than maximize change the z-order.

Let me know.
Eros

catventure
05-10-2008, 12:16
You can use WIN_SetForeground (http://www.thinbasic.com/public/products/thinBasic/help/html/win_setforeground.htm) to force your window to be the upper most in Z-order


Hadn't spotted that ::)

Thank you very much, Eros.

That works very well.

Regards,
catventure.