在VFP中如何控制图片单步移动
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
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:129
阅读量:139
阅读量:22
阅读量:167
阅读量:33