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

📄 keyboard.frm

📁 不错的一个VB菜单设计 界面和功能都不错
💻 FRM
字号:
VERSION 5.00
Object = "{8A1C4FDC-11A7-11D3-938B-0000832EF44D}#2.0#0"; "FASTWin.ocx"
Begin VB.Form frmKeyboard 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Keyboard Info Demo"
   ClientHeight    =   2445
   ClientLeft      =   1590
   ClientTop       =   3180
   ClientWidth     =   4680
   Icon            =   "Keyboard.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   2445
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.HScrollBar hsBlinkTime 
      Height          =   285
      Left            =   90
      Max             =   1000
      TabIndex        =   4
      Top             =   2025
      Width           =   4515
   End
   Begin VB.Timer timCaret 
      Left            =   4140
      Top             =   180
   End
   Begin FLWHardware.FWKeyboard objKeyboard 
      Left            =   4125
      Top             =   795
      _ExtentX        =   820
      _ExtentY        =   820
   End
   Begin VB.Label lblFuncKeys 
      AutoSize        =   -1  'True
      Caption         =   "Function keys"
      Height          =   195
      Left            =   90
      TabIndex        =   5
      Top             =   540
      Width           =   990
   End
   Begin VB.Label lblCaretFlash 
      AutoSize        =   -1  'True
      Caption         =   "Caret blink time..."
      Height          =   195
      Left            =   90
      TabIndex        =   3
      Top             =   1740
      Width           =   1215
   End
   Begin VB.Label lblRepeatDelay 
      AutoSize        =   -1  'True
      Caption         =   "Repeat delay"
      Height          =   195
      Left            =   90
      TabIndex        =   2
      Top             =   1350
      Width           =   945
   End
   Begin VB.Label lblRepeatSpeed 
      AutoSize        =   -1  'True
      Caption         =   "Repeat speed"
      Height          =   195
      Left            =   90
      TabIndex        =   1
      Top             =   945
      Width           =   1005
   End
   Begin VB.Label lblKeyboard 
      AutoSize        =   -1  'True
      Caption         =   "Keyboard type"
      Height          =   195
      Left            =   90
      TabIndex        =   0
      Top             =   135
      Width           =   1020
   End
   Begin VB.Shape shpCaret 
      FillStyle       =   0  'Solid
      Height          =   255
      Left            =   4440
      Top             =   1665
      Width           =   135
   End
End
Attribute VB_Name = "frmKeyboard"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
  Call UpdateInfo
End Sub

Private Sub UpdateInfo()
  lblKeyboard = objKeyboard.keyboardname & ", Type: " & objKeyboard.KeyboardType & ", " & _
                " Subtype: " & objKeyboard.KeyboardSubType
  lblFuncKeys = "Number of function keys: " & objKeyboard.FunctionKeys
  
  lblRepeatDelay = "Keyboard repeat delay: " & objKeyboard.Delay & " seconds"
  lblRepeatSpeed = "Keyboard repeat speed: " & objKeyboard.Speed & " characters per second"
  hsBlinkTime.Value = objKeyboard.CaretBlinkTime
  timCaret.Interval = objKeyboard.CaretBlinkTime
  lblCaretFlash = "Caret flash speed: " & objKeyboard.CaretBlinkTime & "ms"
End Sub

Private Sub hsBlinkTime_Change()
  objKeyboard.CaretBlinkTime = hsBlinkTime.Value
  timCaret.Interval = objKeyboard.CaretBlinkTime
  lblCaretFlash = "Caret flash speed: " & objKeyboard.CaretBlinkTime & "ms"
End Sub

Private Sub timCaret_Timer()
  shpCaret.Visible = Not shpCaret.Visible
End Sub


⌨️ 快捷键说明

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