In this little program instead of TIME() the value of this function
"Foreground" OR "Background"
Many thanks
Marco
- Code: Select all Expand view
- #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