⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmhighs.frm

📁 八脚蟹》射击游戏源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmHighScore 
   Appearance      =   0  'Flat
   BackColor       =   &H80000005&
   BorderStyle     =   3  'Fixed Dialog
   ClientHeight    =   3945
   ClientLeft      =   2175
   ClientTop       =   2625
   ClientWidth     =   5445
   ControlBox      =   0   'False
   BeginProperty Font 
      Name            =   "MS Sans Serif"
      Size            =   8.25
      Charset         =   0
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H80000008&
   Icon            =   "FRMHIGHS.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   3945
   ScaleWidth      =   5445
   Begin VB.TextBox txtName 
      Appearance      =   0  'Flat
      BorderStyle     =   0  'None
      Height          =   315
      Left            =   360
      MaxLength       =   35
      TabIndex        =   0
      Top             =   3600
      Width           =   4695
   End
   Begin VB.Label lblTitle 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "MVaders Hall of Fame"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   315
      Left            =   180
      TabIndex        =   3
      Top             =   120
      Width           =   5115
   End
   Begin VB.Label lblScores 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      ForeColor       =   &H80000008&
      Height          =   315
      Index           =   1
      Left            =   180
      TabIndex        =   4
      Top             =   540
      Width           =   1215
   End
   Begin VB.Label lblXFer 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      ForeColor       =   &H80000008&
      Height          =   315
      Left            =   240
      TabIndex        =   2
      Top             =   3180
      Visible         =   0   'False
      Width           =   375
   End
   Begin VB.Label lblNames 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      ForeColor       =   &H80000008&
      Height          =   315
      Index           =   1
      Left            =   1500
      TabIndex        =   1
      Top             =   540
      Width           =   3735
   End
End
Attribute VB_Name = "frmHighScore"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Activate()

Dim i As Integer

'Position the form
CenterForm Me

'Build array of labels for displaying high scores
For i = 2 To 10
    Load lblNames(i)
    lblNames(i).Top = lblNames(1).Top + lblNames(1).Height * (i - 1)
    lblNames(i) = gtFame(i).sName
    lblNames(i).Visible = True
    Load lblScores(i)
    lblScores(i) = Format$(gtFame(i).iScore, "") & "0"
    lblScores(i).Top = lblScores(1).Top + lblScores(1).Height * (i - 1)
    lblScores(i).Visible = True
Next i
lblNames(1) = gtFame(1).sName
lblScores(1) = Format$(gtFame(1).iScore, "") & "0"

'Now position text entry box for collecting players name
i = Val(lblXFer)
txtName.Top = lblNames(i).Top
txtName.Left = lblNames(i).Left
txtName.Width = lblNames(i).Width
txtName.Height = lblNames(i).Height

End Sub

Private Sub txtName_KeyDown(KeyCode As Integer, Shift As Integer)

'Return name of player
If KeyCode = 13 Then
    If Len(txtName) Then
        frmHighScore.lblXFer = txtName
        frmHighScore.Hide
    Else
        MsgBox "You must enter something!"
    End If
End If

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -