home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 December
/
PCWKCD1296.iso
/
wtest
/
micrsoft
/
vbasic4
/
vb4-3.cab
/
butterf.frm
< prev
next >
Wrap
Text File
|
1995-08-15
|
3KB
|
91 lines
VERSION 4.00
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "Butterfly"
ClientHeight = 4005
ClientLeft = 1230
ClientTop = 1860
ClientWidth = 7395
ClipControls = 0 'False
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 4410
Left = 1170
LinkTopic = "Form1"
ScaleHeight = 267
ScaleMode = 3 'Pixel
ScaleWidth = 493
Top = 1515
Width = 7515
WindowState = 2 'Maximized
Begin VB.CommandButton Command1
Caption = "E&xit"
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
' For a variation, use the following line instead of the preceding one.
' Main.Move (Main.Left + 20) Mod ScaleWidth, (Main.Top - 5 + ScaleHeight) Mod ScaleHeight
If PickBmp Then
Main.Picture = OpenWings.Picture ' Displays the open butterfly picture.
Else
Main.Picture = CloseWings.Picture ' Displays the closed butterfly picture.
End If
PickBmp = Not PickBmp ' Toggle the value.
End Sub