📄 frmhero.frm
字号:
VERSION 5.00
Begin VB.Form frmHero
AutoRedraw = -1 'True
BackColor = &H00FF00FF&
BorderStyle = 0 'Kein
ClientHeight = 660
ClientLeft = 0
ClientTop = 0
ClientWidth = 750
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmHero.frx":0000
ScaleHeight = 44
ScaleMode = 3 'Pixel
ScaleWidth = 50
ShowInTaskbar = 0 'False
Begin VB.PictureBox picSource
AutoRedraw = -1 'True
AutoSize = -1 'True
BorderStyle = 0 'Kein
Height = 660
Left = 0
Picture = "frmHero.frx":1CFA
ScaleHeight = 44
ScaleMode = 3 'Pixel
ScaleWidth = 400
TabIndex = 0
Top = 0
Visible = 0 'False
Width = 6000
End
End
Attribute VB_Name = "frmHero"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************************
'* Date : 08/22/2002 *
'* Name : Matthias Bartelt *
'* Changed: 08/22/2002 *
'* Info : The hero :-) *
'**************************************************
'Variables must be declared
Option Explicit
'**************************************************
'*------------------------------------------------*
'*------------------DECLARATIONS------------------*
'*------------------------------------------------*
'**************************************************
'*** API
'**************************************************
'*------------------------------------------------*
'*-----------------FUNCTIONS/SUBS-----------------*
'*------------------------------------------------*
'**************************************************
Private Sub Form_Load()
'**************************************************
'* Changed : 08/22/2002 *
'* Info : When the form loads. *
'**************************************************
'Show the form
Me.Show
'Set form on top
Call CSystem.sSetFormOnTop(Me.hwnd)
'Load the hero
With CHero
.gSpritCount = 8 'Number of sprites
.gPictureBox = picSource 'PictureBox object
.gStepX = 50 'Steps of the form to move
.gForm = Me 'The form
Call .sStartMoving 'Start the animation
End With
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'**************************************************
'* Changed : 08/22/2002 *
'* Info : When the form loads. *
'**************************************************
'Show the infos if the right button is pressed
If Button = vbRightButton Then frmProperties.Show vbModal
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -