Hi,
When I call another application, I execute oDlg:Disable()
When to another application she is closed, I I execute oDlg:Enable and oDlg:SetFocus(), but my application does not receive the focus!
How to return the focus for my application?
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Vilian,
This test works fine:
Please provide a sample, thanks
This test works fine:
Code: Select all
#include "FiveWin.ch"
function Main()
local oDlg, cTest := "hello world"
DEFINE DIALOG oDlg
@ 1, 2 GET cTest VALID ( MsgInfo( "ok" ), .T. )
@ 3, 2 BUTTON "Disable" ACTION ( oDlg:Disable(), MsgInfo( "disabled" ), oDlg:Enable() )
ACTIVATE DIALOG oDlg CENTERED ;
VALID MsgYesNo( "Want to end ?" )
return nil
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: