Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
oForm = CREATEOBJECT([Form1])
oForm.Show(1)
DEFINE CLASS Form1 AS Form
KeyPreview = .t.
ADD OBJECT Text1 AS TextBox WITH;
Left =0,;
Top=0,;
Width = 200,;
Value = "RightClick Me"
PROCEDURE Text1.RightClick
LOCAL loTimer AS Timer1
DEFINE POPUP shortcut SHORTCUT RELATIVE FROM MROW(),MCOL() MARGIN
DEFINE BAR 1 OF shortcut PROMPT "Test" ;
KEY CTRL+X, "Ctrl+X"
DEFINE BAR 2 OF shortcut PROMPT "Test 2"
loTimer = NEWOBJECT([Timer1])
loTimer.cShortCutName = [shortcut]
loTimer.nTimeOut = 1
ACTIVATE POPUP shortcut
WAIT WINDOW [After Popuup]
ENDPROC
PROCEDURE KeyPres(nKey, nShift)
IF nKey == 27
thisform.Release()
ENDIF
ENDDEFINE
DEFINE CLASS Timer1 AS Timer
cShortCutName = []
nTimeOut = 0
Interval = 0
PROCEDURE nTimeOut_Assign(lnNewValue)
this.Interval = lnNewValue * 1000
RETURN
PROCEDURE Timer
IF NOT EMPTY(this.cShortCutName)
DEACTIVATE POPUP (this.cShortCutName)
ENDIF
RETURN
ENDDEFINE