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.
Public oform1
oform1=createobject("form1")
oform1.AddObject("cmdbutton","cmdbutton")
oform1.Show
Return
Define Class form1 As Form
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
Enddefine
Define Class cmdButton As OleControl
Procedure Init
With This
.Object.BackColor = 255
.Caption = "Click me!"
Endwith
Endproc
OleClass = "forms.commandbutton.1"
Visible = .T.
Height =40
Top = 50
Left = 50
AutoSize = .T.
Procedure Click
Messagebox("This is a red button")
Endproc
Enddefine