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

📄 init.frm

📁 treasure游戏源程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmInit 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Initialization"
   ClientHeight    =   2910
   ClientLeft      =   7770
   ClientTop       =   240
   ClientWidth     =   2655
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   2910
   ScaleWidth      =   2655
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton pbAbort 
      Caption         =   "Abort"
      Height          =   372
      Left            =   1440
      TabIndex        =   8
      Top             =   2040
      Width           =   732
   End
   Begin VB.CommandButton pbOK 
      Caption         =   "OK"
      Height          =   372
      Left            =   360
      TabIndex        =   7
      Top             =   2040
      Width           =   732
   End
   Begin VB.CheckBox chkEuclidean 
      Caption         =   "Euclidean space"
      Height          =   192
      Left            =   120
      TabIndex        =   6
      Top             =   1560
      Value           =   1  'Checked
      Width           =   1452
   End
   Begin VB.Frame Frame1 
      Caption         =   "Number of Dimensions"
      Height          =   732
      Left            =   120
      TabIndex        =   2
      Top             =   600
      Width           =   2292
      Begin VB.OptionButton optNumDimensions3 
         Caption         =   "4"
         Height          =   192
         Index           =   2
         Left            =   1560
         TabIndex        =   5
         Top             =   360
         Value           =   -1  'True
         Width           =   372
      End
      Begin VB.OptionButton optNumDimensions2 
         Caption         =   "3"
         Height          =   192
         Index           =   1
         Left            =   960
         TabIndex        =   4
         Top             =   360
         Width           =   492
      End
      Begin VB.OptionButton optNumDimensions1 
         Caption         =   "2"
         Height          =   192
         Index           =   0
         Left            =   360
         TabIndex        =   3
         Top             =   360
         Width           =   492
      End
   End
   Begin VB.TextBox txtGameNumber 
      Height          =   288
      Left            =   1440
      TabIndex        =   1
      Text            =   "1"
      Top             =   120
      Width           =   972
   End
   Begin VB.Label Label1 
      Alignment       =   1  'Right Justify
      Caption         =   "Game number"
      Height          =   252
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1092
   End
End
Attribute VB_Name = "frmInit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub Check1_Click()

End Sub

Private Sub chkEuclidean_Click()
  frmGame.bEuclidean = Not frmGame.bEuclidean
End Sub


Private Sub Form_Load()
  frmGame.nGame = 1
  frmGame.nDimensions = 4
  frmGame.bEuclidean = True
End Sub

Private Sub optNumDimensions1_Click(Index As Integer)
  frmGame.nDimensions = 2
End Sub

Private Sub optNumDimensions2_Click(Index As Integer)
  frmGame.nDimensions = 3
End Sub


Private Sub optNumDimensions3_Click(Index As Integer)
  frmGame.nDimensions = 4
End Sub


Private Sub pbAbort_Click()
  End
End Sub

Private Sub pbOK_Click()
  Dim bValue As Boolean
  
  frmInit.Visible = False
  frmGame.nGame = Val(txtGameNumber.Text)
  frmGame.Visible = True
End Sub


⌨️ 快捷键说明

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