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

📄 controls.frm

📁 不错的一个VB菜单设计 界面和功能都不错
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      Left            =   5070
      TabIndex        =   47
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Style           =   3
      StyleScroll     =   8
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   8
      Left            =   6270
      TabIndex        =   48
      Top             =   6300
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Checked         =   -1  'True
      Style           =   1
      StyleCaption    =   3
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   9
      Left            =   6600
      TabIndex        =   49
      Top             =   6300
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Style           =   3
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   10
      Left            =   6840
      TabIndex        =   50
      Top             =   6300
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Checked         =   -1  'True
      Style           =   3
      StyleScroll     =   1
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   11
      Left            =   7080
      TabIndex        =   51
      Top             =   6300
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Style           =   3
      StyleScroll     =   2
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   12
      Left            =   5340
      TabIndex        =   52
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Style           =   2
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   13
      Left            =   5580
      TabIndex        =   53
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Style           =   2
      StyleMenu       =   2
      StyleCaption    =   4
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   14
      Left            =   5820
      TabIndex        =   54
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Style           =   2
      StyleMenu       =   1
      StyleCaption    =   1
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   15
      Left            =   6060
      TabIndex        =   55
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Flat            =   -1  'True
      Style           =   2
      StyleMenu       =   1
      StyleCaption    =   2
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   16
      Left            =   6270
      TabIndex        =   56
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Style           =   2
      StyleMenu       =   1
      StyleCaption    =   3
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   17
      Left            =   6630
      TabIndex        =   57
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Mono            =   -1  'True
      StyleButton     =   0
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   18
      Left            =   6870
      TabIndex        =   58
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      StyleCaption    =   4
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   19
      Left            =   7110
      TabIndex        =   59
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Checked         =   -1  'True
      Mono            =   -1  'True
      StyleButton     =   8
      StyleCaption    =   1
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   20
      Left            =   7350
      TabIndex        =   60
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Checked         =   -1  'True
      Mono            =   -1  'True
      StyleButton     =   4
      StyleCaption    =   2
   End
   Begin FLWCtrls2.FWWinControl FWWinControl1 
      Height          =   225
      Index           =   21
      Left            =   7560
      TabIndex        =   61
      Top             =   6570
      Width           =   225
      _ExtentX        =   397
      _ExtentY        =   397
      Checked         =   -1  'True
      StyleCaption    =   3
   End
   Begin VB.Label Label1 
      Caption         =   "FWWinControl"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   195
      Index           =   3
      Left            =   5340
      TabIndex        =   62
      Top             =   6060
      Width           =   1410
   End
   Begin VB.Label Label1 
      Caption         =   "FWNumericTextBox"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   255
      Index           =   2
      Left            =   3450
      TabIndex        =   39
      Top             =   5790
      Width           =   1680
   End
   Begin VB.Label Label1 
      Caption         =   "FWScrollText"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   195
      Index           =   1
      Left            =   5340
      TabIndex        =   29
      Top             =   5400
      Width           =   1410
   End
   Begin VB.Label Label1 
      Caption         =   "FWComboColor"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   255
      Index           =   0
      Left            =   3450
      TabIndex        =   14
      Top             =   5160
      Width           =   1410
   End
   Begin FLWSystem.FWShell objShell 
      Left            =   30
      Top             =   1050
      _ExtentX        =   820
      _ExtentY        =   820
   End
End
Attribute VB_Name = "frmFASTWinCtrls"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdActive_Click()
  If timTimer.Enabled Then
    timTimer.Enabled = False
    cmdActive.Caption = "Activate"
  Else
    timTimer.Enabled = True
    cmdActive.Caption = "Deactivate"
  End If
End Sub

Private Sub cmdProgress_Click()
  Dim lngInd As Long
  
  cmdProgress.Enabled = False
  For lngInd = FWProgressBar1.Min To FWProgressBar1.Max
    FWProgressBar1.Value = lngInd
    FWProgressBar2.Value = lngInd
    FWProgressBar3.Value = lngInd
    FWProgressBar4.Value = lngInd
    FWProgressBar5.Value = lngInd
    Call objShell.Sleep(15)
    DoEvents
  Next
  cmdProgress.Enabled = True
End Sub

Private Sub cmdTermometter_Click()
  If timTermometter.Enabled Then
    timTermometter.Enabled = False
    cmdTermometter.Caption = "Activate"
  Else
    timTermometter.Enabled = True
    cmdTermometter.Caption = "Deactivate"
  End If
End Sub

Private Sub Form_Load()
  optAlignment(1).Value = True
End Sub

Private Sub cmdLed_Click()
  Led1.Value = Rnd * 100000
End Sub

Private Sub Dial1_Change()
  lblDial = "Value: " & Dial1.Value
End Sub

Private Sub FWNumericTextBox1_Changed()
  Debug.Print Now
End Sub

Private Sub FWNumericTextBox2_Changed()
  Debug.Print Now
End Sub

Private Sub optAlignment_Click(Index As Integer)
  Select Case Index
    Case 0
      Led1.Alignment = vbLeftJustify
    Case 1
      Led1.Alignment = vbRightJustify
    Case 2
      Led1.Alignment = vbCenter
  End Select
End Sub

Private Sub timTermometter_Timer()
  ' generates random numbes
  With objTermometter1
    .Value = ((.Value * 7) + ((.Max - .Min) * Rnd)) / 8
  End With
  With objTermometter2
    .Value = ((.Value * 7) + ((.Max - .Min) * Rnd)) / 8
  End With
  With objTermometter3
    .Value = ((.Value * 7) + ((.Max - .Min) * Rnd)) / 8
  End With
End Sub

Private Sub timTimer_Timer()
  ' generates random numbes
  With objFWOdometter1
    .Value = ((.Value * 7) + ((.Max - .Min) * Rnd)) / 8
  End With
  With objFWOdometter2
    .Value = ((.Value * 7) + ((.Max - .Min) * Rnd)) / 8
  End With
End Sub

⌨️ 快捷键说明

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