在VFP中如何控制图片单步移动

时间:2026-02-14 02:09:39

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.

在VFP中如何控制图片单步移动

3、 

在VFP中如何控制图片单步移动

4、 

在VFP中如何控制图片单步移动

5、 

在VFP中如何控制图片单步移动

6、 

在VFP中如何控制图片单步移动

7、thisform.image1.left=0

8、t=0

© 2026 途途旅游
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com