Article ID: 178117
Article Last Modified on 3/10/2001
Application.Visible = .F.
Application.Visible = .F.to the Activate event of the Top-Level form.
oLost = CREATEOBJECT('NOFOCUS')
oLost.Show()
READ EVENTS
RETURN
DEFINE CLASS noFocus AS FORM
AutoCenter = .T.
Height = 450
Width = 640
Caption = "Lost Focus Form"
Visible = .T.
ShowWindow = 2
WindowType = 0
ADD OBJECT frmcaption AS frmcap WITH Top=225, Left=220
PROCEDURE Init
Application.Visible = .F.
ENDPROC
PROCEDURE Click()
ThisForm.Release
CLEAR EVENTS
Application.Visible = .T.
ENDPROC
ENDDEFINE
DEFINE CLASS frmcap AS LABEL
FontName = "Arial"
FontSize = 10
FontBold = .T.
Caption = "Click anywhere on the form to close"
Visible = .T.
AutoSize = .T.
ENDDEFINE
DO RUNHIDE
oNotLost = CREATEOBJECT('NOFOCUS')
oNotLost.Show()
READ EVENTS
RETURN
DEFINE CLASS hasFocus AS FORM
AutoCenter = .T.
Height = 450
Width = 640
Caption = "Has Focus Form"
Visible = .T.
ShowWindow = 2
WindowType = 0
ADD OBJECT frmcaption AS frmcap WITH Top=225, Left=220
PROCEDURE Activate
Application.Visible = .F.
ENDPROC
PROCEDURE Click()
ThisForm.Release
CLEAR EVENTS
Application.Visible = .T.
ENDPROC
ENDDEFINE
DEFINE CLASS frmcap AS LABEL
FontName = "Arial"
FontSize = 10
FontBold = .T.
Caption = "Click anywhere on the form to close"
Visible = .T.
AutoSize = .T.
ENDDEFINE
DO NOHIDE
Keywords: kbprb KB178117