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=NEWOBJECT("form1")
oform1.Show
RETURN
DEFINE CLASS form1 AS form
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT spinner1 AS spinner WITH ;
Height = 25, ;
Left = 216, ;
SpinnerHighValue = 100.00, ;
SpinnerLowValue = 0.00, ;
TabIndex = 2, ;
Top = 72, ;
Width = 20, ;
Name = "Spinner1"
ADD OBJECT text1 AS textbox WITH ;
Alignment = 3, ;
Value = 0, ;
Height = 23, ;
Left = 120, ;
TabIndex = 1, ;
Top = 73, ;
Width = 97, ;
Name = "Text1"
PROCEDURE spinner1.DownClick
DO CASE
CASE THISFORM.TEXT1.Value = 0
CASE THISFORM.TEXT1.Value = 0
CASE THISFORM.TEXT1.Value = .5
THISFORM.TEXT1.Value = 0
CASE THISFORM.TEXT1.Value = 1
THISFORM.TEXT1.Value = .5
OTHERWISE
THISFORM.TEXT1.Value = THISFORM.TEXT1.Value -1
ENDCASE
ENDPROC
PROCEDURE spinner1.UpClick
DO CASE
CASE THISFORM.TEXT1.Value = 100
THISFORM.REXR1.VALUE = 100
CASE THISFORM.TEXT1.Value = 0
THISFORM.TEXT1.Value = .5
CASE THISFORM.TEXT1.Value = .5
THISFORM.TEXT1.Value = 1
OTHERWISE
THISFORM.TEXT1.Value = THISFORM.TEXT1.Value +1
ENDCASE
ENDPROC
ENDDEFINE
IF This.Value < 1
This.Increment = .5
ELSE
This.Increment = 1
ENDIF
**************************************************
*-- Class: sp1 (c:\program files\microsoft visual foxpro 7\sp1.vcx)
*-- ParentClass: spinner
*-- BaseClass: spinner
*-- Time Stamp: 11/21/02 08:00:00 AM
*
DEFINE CLASS sp1 AS spinner
Height = 24
Increment = 0.50
Left = 492
SpinnerHighValue = 10.00
SpinnerLowValue = 0.50
Top = 168
Width = 69
Value = 0.5
Name = "Spinner1"
PROCEDURE InteractiveChange
IF this.Value < 1
This.Increment = .5
ELSE
This.Increment = 1
ENDIF
ENDPROC
ENDDEFINE
*
*-- EndDefine: sp1
**************************************************