1、在VFP中使用表单工具,先分别插入一个图片控件image1和标签控件label1,再分别插入3个命令按纽。
2、对各个控件设置属性,并且为每个控件进行编程。如下:定时器控件的添加
image1控件的left属性设定为0
label控件的caption属性设定为0
form的int过程,编程为:
thisform.timer1.enabled=.f.
public t
t=0
timer1控件的interval属性设定为1000,
它的timer过程编程为:
t=t+1
t1=t*10
thisform.image1.left=t1
thisform.label1.caption=str(t,8)
command1的caption属性为“开始”,click过程为
thisform.timer1.enabled=.t.
command1的caption属性为“暂停”,click过程为
thisform.timer1.enabled=.f.
command2的caption属性为“复位”,click过程为
thisform.timer1.enabled=.f.

3、

4、

5、

6、

7、thisform.image1.left=0
8、t=0