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("frmcircle")
oForm.windowtype = 1 && modal
oForm.show()
oForm = .Null.
DEFINE CLASS frmcircle AS form
Height = 400
Width = 400
DoCreate = .T.
AutoCenter = .T.
BorderStyle = 0
Movable = .F.
TitleBar = 0
BackColor = RGB(0,0,255)
Name = "frmCircle"
PROCEDURE DblClick
ThisForm.Release()
ENDPROC
PROCEDURE Init
LOCAL nhWnd, nWidth, nHeight, nRegion
DECLARE INTEGER CreateEllipticRgn IN gdi32 ;
INTEGER X1 , INTEGER Y1 , INTEGER X2 , INTEGER Y2
DECLARE INTEGER SetWindowRgn IN user32 ;
INTEGER HWND, INTEGER hRgn , INTEGER bRedraw
nhWnd = This.HWnd
nWidth = This.WIDTH / 3 && change ratio
nHeight = This.HEIGHT / 2 && change ratio
nRegion = CreateEllipticRgn(0, 0, nWidth, nHeight)
SetWindowRgn(nhWnd, nRegion, 1)
ENDPROC
ENDDEFINE
*
*-- EndDefine: frmcircle