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

📄 formgraphics.frm

📁 个人VB学习源码精选,自己学习时的一些编程小程序,希望对大家有帮助
💻 FRM
字号:
VERSION 5.00
Begin VB.Form formGraphics 
   Caption         =   "Graphics Project"
   ClientHeight    =   4275
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2940
   ClipControls    =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   4275
   ScaleWidth      =   2940
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmndExit 
      Caption         =   "E&xit"
      Height          =   315
      Left            =   1500
      TabIndex        =   2
      Top             =   660
      Width           =   1215
   End
   Begin VB.CommandButton cmndActivate 
      Caption         =   "&Activate"
      Height          =   315
      Left            =   1500
      TabIndex        =   1
      Top             =   180
      Width           =   1215
   End
   Begin VB.Frame frameBlanker 
      Caption         =   "Blanker Options"
      Height          =   2835
      Left            =   173
      TabIndex        =   0
      Top             =   1380
      Width           =   2595
      Begin VB.OptionButton optnBlanker 
         Caption         =   "Lines"
         Height          =   315
         Index           =   4
         Left            =   300
         TabIndex        =   7
         Top             =   2220
         Width           =   1215
      End
      Begin VB.OptionButton optnBlanker 
         Caption         =   "Squares"
         Height          =   255
         Index           =   3
         Left            =   300
         TabIndex        =   6
         Top             =   1800
         Width           =   1035
      End
      Begin VB.OptionButton optnBlanker 
         Caption         =   "Circles"
         Height          =   315
         Index           =   2
         Left            =   300
         TabIndex        =   5
         Top             =   1260
         Width           =   1095
      End
      Begin VB.OptionButton optnBlanker 
         Caption         =   "Color Spots"
         Height          =   255
         Index           =   1
         Left            =   300
         TabIndex        =   4
         Top             =   840
         Width           =   1335
      End
      Begin VB.OptionButton optnBlanker 
         Caption         =   "Blanker Screen"
         Height          =   315
         Index           =   0
         Left            =   300
         TabIndex        =   3
         Top             =   300
         Width           =   1695
      End
   End
   Begin VB.Image Image1 
      Height          =   915
      Index           =   0
      Left            =   120
      Top             =   180
      Width           =   1035
   End
End
Attribute VB_Name = "formGraphics"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public BlankerType As Integer

Private Sub cmndActivate_Click()
    formGraphics.Hide
    formScreen.Show
    formScreen!timeBlanker.Enabled = True
    
End Sub

Private Sub cmndExit_Click()
    Unload Me
    Unload formScreen
End Sub

Private Sub Form_Load()
    Dim i As Integer
    For i = 1 To 4
        Load Image1(i)
        Image1(i).Visible = True
    Next i
    Image1(0).Picture = LoadPicture("d:\temp\key01.ico")
    Image1(1).Picture = LoadPicture("d:\temp\key02.ico")
    Image1(2).Picture = LoadPicture("d:\temp\key03.ico")
    Image1(3).Picture = LoadPicture("d:\temp\key04.ico")
    Image1(4).Picture = LoadPicture("d:\temp\key05.ico")
End Sub

Private Sub optnBlanker_GotFocus(Index As Integer)
    Image1(Index).ZOrder vbBringToFront
    Icon = Image1(Index).Picture
    BlankerType = Index
End Sub

⌨️ 快捷键说明

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