生成能动图形
2012-05-30 16:53
155 查看
Dim gAs Boolean
Dim xAs Long
再双击开始运动按钮,编写程序语言
PrivateSub Command1_Click()
Timer1.Enabled= True
End Sub
再双击窗体,编写程序语言
Private Sub Form_Load()
g = True
x = Shape1.Left
End Sub
再双击闹钟,编写程序语言
Private Sub Timer1_Timer()
If g Then
x = x - 300
Else
x = x + 300
End If
If x < 0 Or x > (Me.ScaleWidth - Shape1.Width)Then
g = Not g
End If
Shape1.Move x
End Sub
Dim xAs Long
再双击开始运动按钮,编写程序语言
PrivateSub Command1_Click()
Timer1.Enabled= True
End Sub
再双击窗体,编写程序语言
Private Sub Form_Load()
g = True
x = Shape1.Left
End Sub
再双击闹钟,编写程序语言
Private Sub Timer1_Timer()
If g Then
x = x - 300
Else
x = x + 300
End If
If x < 0 Or x > (Me.ScaleWidth - Shape1.Width)Then
g = Not g
End If
Shape1.Move x
End Sub
相关文章推荐
- 生成能动图形
- ASP生成图形(数字验证码)
- 一个简单的php图形验证码生成程序
- 新手学习CAD-将excel中的点导入到cad中生成图形
- java图形编程--生成一个窗口的步骤
- 在线生成图形,报表工具
- 验证码生成(四位图形验证码java)
- PHP生成图形验证码
- 生成透明的图形
- [16] 螺旋面(Spire)图形的生成算法
- android 本地生成图形验证码
- PHP5中GD库生成图形验证码(有汉字)
- 图形验证码的生成和破解
- opencv2-1随机图形与文字生成
- asp.net 生成图形验证码(字母和数字混合)
- eclipse绘制activiti无法生成图形
- ASP.NET中如何生成图形验证码
- Node.js生成图形验证码--captchapng/ccap/trek-captcha
- Java Web开发之图形验证码的生成与使用方法
- java图形验证码生成工具类