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

📄 点菜系统.frm

📁 这是一个用VB语言做成的点菜系统
💻 FRM
字号:
VERSION 5.00
Object = "{C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.1#0"; "MCI32.OCX"
Begin VB.Form Form1 
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   300
   ClientTop       =   2250
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin MCI.MMControl MMControl1 
      Height          =   375
      Left            =   2880
      TabIndex        =   4
      Top             =   2760
      Visible         =   0   'False
      Width           =   2835
      _ExtentX        =   5001
      _ExtentY        =   661
      _Version        =   393216
      PlayEnabled     =   -1  'True
      PauseEnabled    =   -1  'True
      RecordVisible   =   0   'False
      EjectVisible    =   0   'False
      DeviceType      =   ""
      FileName        =   ""
   End
   Begin VB.Timer Timer1 
      Interval        =   210
      Left            =   12600
      Top             =   10560
   End
   Begin VB.Timer Timer2 
      Enabled         =   0   'False
      Interval        =   20
      Left            =   12240
      Top             =   10560
   End
   Begin VB.Timer Timer3 
      Interval        =   100
      Left            =   11880
      Top             =   10560
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H000000C0&
      BorderStyle     =   0  'None
      Height          =   1695
      Left            =   4440
      TabIndex        =   0
      Top             =   1080
      Width           =   6495
      Begin VB.PictureBox Picture1 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         BorderStyle     =   0  'None
         ForeColor       =   &H80000008&
         Height          =   1695
         Left            =   0
         Picture         =   "点菜系统.frx":0000
         ScaleHeight     =   1695
         ScaleWidth      =   6495
         TabIndex        =   5
         Top             =   0
         Width           =   6495
         Begin VB.Label Label1 
            Alignment       =   2  'Center
            BackColor       =   &H000000FF&
            Caption         =   "富 丽 堂 皇   高 贵 气 派"
            BeginProperty Font 
               Name            =   "华文彩云"
               Size            =   26.25
               Charset         =   134
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            ForeColor       =   &H00C0C0C0&
            Height          =   495
            Left            =   0
            TabIndex        =   7
            Top             =   0
            Width           =   6495
         End
         Begin VB.Label Label3 
            Alignment       =   2  'Center
            AutoSize        =   -1  'True
            BackColor       =   &H00FF0000&
            BackStyle       =   0  'Transparent
            Caption         =   "      阿宋家大酒楼      点菜系统"
            BeginProperty Font 
               Name            =   "楷体_GB2312"
               Size            =   26.25
               Charset         =   134
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   1050
            Left            =   -160
            TabIndex        =   6
            Top             =   600
            Width           =   6915
            WordWrap        =   -1  'True
         End
      End
   End
   Begin VB.Label Label2 
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BackColor       =   &H80000005&
      BackStyle       =   0  'Transparent
      Caption         =   "楼酒大家宋阿临光迎欢"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   36
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   810
      Left            =   -8000
      TabIndex        =   3
      Top             =   240
      Visible         =   0   'False
      Width           =   7410
      WordWrap        =   -1  'True
   End
   Begin VB.Label Label4 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "请点击进入"
      BeginProperty Font 
         Name            =   "方正舒体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   9000
      TabIndex        =   2
      ToolTipText     =   "点击进入系统"
      Top             =   3920
      Width           =   1695
   End
   Begin VB.Label Label5 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "退出系统"
      BeginProperty Font 
         Name            =   "方正舒体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   13680
      TabIndex        =   1
      ToolTipText     =   "点击退出系统"
      Top             =   10680
      Width           =   1335
   End
   Begin VB.Image Image5 
      Height          =   1695
      Left            =   0
      Picture         =   "点菜系统.frx":36CE
      Stretch         =   -1  'True
      Top             =   1080
      Width           =   1695
   End
   Begin VB.Image Image2 
      Height          =   8775
      Left            =   0
      Picture         =   "点菜系统.frx":F06E
      Stretch         =   -1  'True
      Top             =   2760
      Width           =   15495
   End
   Begin VB.Image Image7 
      Height          =   1695
      Left            =   13440
      Picture         =   "点菜系统.frx":2AA9B
      Stretch         =   -1  'True
      Top             =   1080
      Width           =   1935
   End
   Begin VB.Image Image4 
      Height          =   1695
      Left            =   10920
      Picture         =   "点菜系统.frx":39F6B
      Stretch         =   -1  'True
      Top             =   1080
      Width           =   2535
   End
   Begin VB.Image Image3 
      Height          =   1695
      Left            =   1680
      Picture         =   "点菜系统.frx":3D72B
      Stretch         =   -1  'True
      Top             =   1080
      Width           =   2775
   End
   Begin VB.Image Image1 
      Height          =   1095
      Left            =   0
      Picture         =   "点菜系统.frx":4121B
      Stretch         =   -1  'True
      Top             =   0
      Width           =   15375
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public i As Integer
Public j As Integer
Public r As Integer
Public t As Integer
Public n As Integer
Public q As Integer

Private Sub Form_Load()
MMControl1.DeviceType = ""
MMControl1.FileName = "爱相随.wma"
MMControl1.Command = "open"
MMControl1.Command = "play"
Label1.Top = 5
Label1.Left = 0
Load Form1
Form1.Top = 0.5
Form1.Left = 2
Form1.Width = 15400
Form1.Height = 12000
Label1.BackColor = RGB(254, 106, 0)

End Sub



Private Sub Label5_Click()
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
End
End Sub

Private Sub Timer2_Timer()
Form2.Timer1.Enabled = False
Label2.ForeColor = vbYellow
Label2.Visible = True
Label2.AutoSize = True
Label2.Left = Label2.Left + 80
If Label2.Left > 15400 Then
Label2.Left = -8000
If Label2.Left = -8000 Then
Timer2.Enabled = False
Timer3.Enabled = True
End If
End If
End Sub

Private Sub Timer1_Timer()
For r = 0 To 2000
Next r
Label3.ForeColor = RGB(255 * Rnd, 255 * Rnd, 255 * Rnd)
Label1.ForeColor = RGB(255 * Rnd, 255 * Rnd, 255 * Rnd)
End Sub
Sub a()
For j = 600 To 0 Step -1
For t = 0 To 30000
Next t
Label1.Height = j
x = 0
Y = Form1.Height / 19 - Label1.Height / 2 - 300
Label1.Move x, Y
Next j
If j = 0 Then
Exit Sub
End If
End Sub

Sub b()
For i = 0 To 600 Step 1
For t = 0 To 30000
Next t
Label1.Height = i
x = 0
Y = Form1.Height / 19 - Label1.Height / 2 - 300
Label1.Move x, Y
Next i
If i = 600 Then
Exit Sub
End If
End Sub

Private Sub Timer3_Timer()
Call a
Call b
Timer3.Enabled = False
Timer2.Enabled = True
End Sub
Private Sub Label4_Click()
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
'Label1.Visible = False
Label2.Visible = False
'Label3.Visible = False
Frame1.Visible = False
    For i = 0 To ScaleWidth Step 90
    For j = 0 To ScaleHeight Step 200 * ScaleHeight / ScaleWidth
    Line (i, 0)-(0, j), RGB(155, 8, 16)
    Line (ScaleWidth - i, ScaleHeight)-(ScaleWidth, ScaleHeight - j), RGB(155, 8, 16)
    Line (0, ScaleHeight - j)-(i, ScaleHeight), RGB(155, 8, 16)
    Line (ScaleWidth - i, 0)-(ScaleWidth, ScaleHeight - j), RGB(155, 8, 16)
    Next j
    Next i
    'BackColor = RGB(253, 101, 0)
    BackColor = RGB(255 * Rnd, 255 * Rnd, 255 * Rnd)
   For q = ScaleWidth / 2 To 0 Step -1
   For r = 0 To 10000 Step 4
    Next r
    Line (q, 0)-(q, ScaleHeight - 1), RGB(155, 8, 16)
    Line (ScaleWidth - q, 0)-(ScaleWidth - q, ScaleHeight), RGB(155, 8, 16)
    Next q
'Image1.Visible = False
'Image2.Visible = False
'Image3.Visible = False
'Image4.Visible = False
'Image5.Visible = False
'Image7.Visible = False
Form2.Image1.Visible = True
Form2.Image2.Visible = True
Form2.Image3.Visible = True
Form2.Image4.Visible = True
Form2.Timer1.Enabled = True
Form2.Show
Load Form2
Cls
'Unload Form1
Form1.Visible = False
End Sub




⌨️ 快捷键说明

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