home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611A.ISO
/
vpr_data
/
vb32
/
vb4wm
/
vb4-4.cab
/
butterf.frm
< prev
next >
Wrap
Text File
|
1996-01-12
|
3KB
|
92 lines
VERSION 4.00
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "蝶"
ClientHeight = 4005
ClientLeft = 1230
ClientTop = 1860
ClientWidth = 7395
ClipControls = 0 'False
BeginProperty Font
name = "標準ゴシック"
charset = 128
weight = 400
size = 9
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 4410
Left = 1170
LinkTopic = "Form1"
ScaleHeight = 267
ScaleMode = 3 'ピクセル
ScaleWidth = 493
Top = 1515
Width = 7515
WindowState = 2 '最大表示
Begin VB.CommandButton Command1
Caption = "終了(&X)"
Height = 495
Left = 6000
TabIndex = 0
Top = 3360
Width = 1095
End
Begin VB.Timer Timer1
Interval = 200
Left = 1890
Top = 2940
End
Begin VB.Image Main
Height = 1155
Left = 360
Picture = "BUTTERF.frx":0000
Top = 2640
Width = 1155
End
Begin VB.Image CloseWings
Height = 1155
Left = 1920
Picture = "BUTTERF.frx":0C8A
Top = 240
Visible = 0 'False
Width = 1155
End
Begin VB.Image OpenWings
Height = 1155
Left = 360
Picture = "BUTTERF.frx":1914
Top = 240
Visible = 0 'False
Width = 1155
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End
End Sub
Private Sub Form_Load()
command1.Move 10, 10
End Sub
Private Sub Timer1_Timer()
Static PickBmp As Integer
' 蝶のピクチャを移動します。
Main.Move Main.Left + 20, Main.Top - 5
' More メソッドを次のように変更すると蝶の飛び方が変わります。
' Main.Move (Main.Left + 20) Mod ScaleWidth, (Main.Top - 5 + ScaleHeight) Mod ScaleHeight
If PickBmp Then
Main.Picture = OpenWings.Picture ' 羽を開いた蝶のピクチャを表示します。
Else
Main.Picture = CloseWings.Picture ' 羽を閉じた蝶のピクチャを表示します。
End If
PickBmp = Not PickBmp ' 値を切り替えます。
End Sub