IsForeground() ??
Posted: Thu Sep 20, 2012 7:18 am
Does exist a function which tells me if the application is foreground()?
In this little program instead of TIME() the value of this function
"Foreground" OR "Background"
Many thanks
Marco
In this little program instead of TIME() the value of this function
"Foreground" OR "Background"
Many thanks
Marco
Code: Select all
#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oMain
DEFINE WINDOW oMain
ACTIVATE WINDOW oMain ON INIT dialogo()
RETURN NIL
FUNCTION DIALOGO()
LOCAL oDlg
LOCAL oSay
LOCAL oTimer
DEFINE DIALOG oDlg
@ 1 , 1 SAY oSay PROMPT "PROVA" OF oDlg
DEFINE TIMER oTimer OF oDlg INTERVAL 1000 ACTION oSay:settext( TIME() )
ACTIVATE DIALOG oDlg ON INIT ( oTimer:hWndOwner := oDlg:hWnd , oTimer:Activate() )
RELEASE TIMER oTimer
RETURN NIL