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

📄 frmconfig.frm

📁 一款漂亮的闹钟制作界面,希望能给你们带来帮助.
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmConfig 
   BorderStyle     =   0  'None
   Caption         =   "时钟设置"
   ClientHeight    =   4005
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4485
   Icon            =   "frmConfig.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4005
   ScaleWidth      =   4485
   StartUpPosition =   2  '屏幕中心
   Begin Reminder.isButton isButton2 
      Height          =   330
      Left            =   2850
      TabIndex        =   3
      Top             =   3450
      Width           =   1125
      _ExtentX        =   1984
      _ExtentY        =   582
      Icon            =   "frmConfig.frx":038A
      Style           =   8
      Caption         =   "取消"
      IconAlign       =   0
      iNonThemeStyle  =   0
      Tooltiptitle    =   ""
      ToolTipIcon     =   0
      ToolTipType     =   1
      ttForeColor     =   0
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      MaskColor       =   0
   End
   Begin Reminder.isButton isButton1 
      Default         =   -1  'True
      Height          =   330
      Left            =   1590
      TabIndex        =   4
      Top             =   3435
      Width           =   1125
      _ExtentX        =   1984
      _ExtentY        =   582
      Icon            =   "frmConfig.frx":03A6
      Style           =   8
      Caption         =   "确定"
      IconAlign       =   0
      iNonThemeStyle  =   0
      Tooltiptitle    =   ""
      ToolTipIcon     =   0
      ToolTipType     =   1
      ttForeColor     =   0
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      MaskColor       =   0
   End
   Begin Reminder.XPContainer XPContainer1 
      Height          =   3960
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   4485
      _ExtentX        =   7911
      _ExtentY        =   6985
      Caption         =   "时钟设置"
      Begin Reminder.XpCheckBox ifenhhlp 
         Height          =   255
         Left            =   2370
         TabIndex        =   16
         Top             =   3060
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   450
         Value           =   1
         Caption         =   "CheckBox1"
         BackColor       =   16443612
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Reminder.isButton isButton5 
         Height          =   315
         Left            =   3975
         TabIndex        =   15
         Top             =   2655
         Width           =   375
         _ExtentX        =   661
         _ExtentY        =   556
         Icon            =   "frmConfig.frx":03C2
         Style           =   8
         Caption         =   " "
         IconAlign       =   0
         iNonThemeStyle  =   0
         Tooltiptitle    =   ""
         ToolTipIcon     =   0
         ToolTipType     =   1
         ttForeColor     =   0
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Verdana"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         MaskColor       =   0
      End
      Begin Reminder.XpCheckBox ifPlay 
         Height          =   255
         Left            =   585
         TabIndex        =   14
         Top             =   3060
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   450
         Value           =   1
         Caption         =   "CheckBox1"
         BackColor       =   16443612
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.TextBox Text3 
         Appearance      =   0  'Flat
         Height          =   270
         Left            =   180
         TabIndex        =   12
         Text            =   "Text1"
         Top             =   2670
         Width           =   3375
      End
      Begin Reminder.isButton isButton4 
         Height          =   315
         Left            =   3585
         TabIndex        =   11
         Top             =   2655
         Width           =   375
         _ExtentX        =   661
         _ExtentY        =   556
         Icon            =   "frmConfig.frx":075C
         Style           =   8
         Caption         =   "..."
         IconAlign       =   0
         iNonThemeStyle  =   0
         Tooltiptitle    =   ""
         ToolTipIcon     =   0
         ToolTipType     =   1
         ttForeColor     =   0
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Verdana"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         MaskColor       =   0
      End
      Begin VB.TextBox Text2 
         Appearance      =   0  'Flat
         Height          =   270
         Left            =   990
         MaxLength       =   3
         TabIndex        =   9
         Text            =   "Text1"
         Top             =   1320
         Width           =   840
      End
      Begin Reminder.isButton isButton3 
         Height          =   315
         Left            =   3585
         TabIndex        =   8
         Top             =   2025
         Width           =   375
         _ExtentX        =   661
         _ExtentY        =   556
         Icon            =   "frmConfig.frx":0778
         Style           =   8
         Caption         =   "..."
         IconAlign       =   0
         iNonThemeStyle  =   0
         Tooltiptitle    =   ""
         ToolTipIcon     =   0
         ToolTipType     =   1
         ttForeColor     =   0
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Verdana"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         MaskColor       =   0
      End
      Begin VB.PictureBox Picture1 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   1470
         Left            =   2520
         ScaleHeight     =   1440
         ScaleWidth      =   1440
         TabIndex        =   7
         Top             =   465
         Width           =   1470
      End
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         Height          =   270
         Left            =   180
         TabIndex        =   6
         Text            =   "Text1"
         Top             =   2040
         Width           =   3375
      End
      Begin Reminder.XpCheckBox ifcanmove 
         Height          =   255
         Left            =   240
         TabIndex        =   2
         Top             =   555
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   450
         Value           =   1
         Caption         =   "CheckBox1"
         BackColor       =   16577775
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Reminder.XpCheckBox ifontop 
         Height          =   375
         Left            =   240
         TabIndex        =   1
         Top             =   825
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   661
         Caption         =   "CheckBox1"
         BackColor       =   16577775
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.Image Image4 
         Height          =   240
         Left            =   240
         Picture         =   "frmConfig.frx":0794
         Top             =   2400
         Width           =   240
      End
      Begin VB.Image Image3 
         Height          =   240
         Left            =   240
         Picture         =   "frmConfig.frx":0B1E
         Top             =   1680
         Width           =   240
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "闹钟声音:"
         Height          =   255
         Left            =   555
         TabIndex        =   13
         Top             =   2415
         Width           =   1095
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "透明度:"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   1350
         Width           =   1095
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "背景图片:"
         Height          =   255
         Left            =   540
         TabIndex        =   5
         Top             =   1725
         Width           =   1095
      End
   End
   Begin MSComDlg.CommonDialog cmDlg 
      Left            =   4680
      Top             =   120
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      CancelError     =   -1  'True
      DialogTitle     =   "打开..."
   End
End
Attribute VB_Name = "frmConfig"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
XPContainer1.hhhw = Me.hwnd
XPContainer1.Width = Me.Width
XPContainer1.Height = Me.Height
ifcanmove.Caption = "可以移动"
ifontop.Caption = "置顶显示"
ifenhhlp.Caption = "开启健康提醒"
ifcanmove.Value = 0 - CanMove
ifontop.Value = 0 - Ontop
Picture1.Picture = frmMain.Picture
Text1.Text = BkPic
Text2.Text = HowTM
Text3.Text = SoundFile
ifPlay.Caption = "开启闹钟声音"
ifPlay.Value = 0 - PlaySound
ifenhhlp.Value = 0 - EnHhelp
End Sub ' wssccc's qq  151884336

Private Sub isButton1_Click()
If Val(Text2.Text) > 255 Then MsgBox "透明度为0-255。", vbInformation, "提示": Exit Sub
CanMove = 0 - ifcanmove.Value
Ontop = 0 - ifontop.Value
PlaySound = 0 - ifPlay.Value
EnHhelp = 0 - ifenhhlp.Value
frmMain.Picture = Picture1.Picture
BkPic = Text1.Text
HowTM = Text2.Text
SoundFile = Text3.Text
SaveSettings
frmMain.RefreshA
Unload Me
End Sub ' wssccc's qq  151884336

Private Sub isButton2_Click()
Unload Me
MCISendString "stop MyWav", vbNullString, 0, 0
End Sub ' wssccc's qq  151884336

Sub isButton3_Click()
On Error GoTo Err
cmDlg.Filter = "*.*"
cmDlg.InitDir = App.Path & "\graph\"
cmDlg.ShowOpen
If cmDlg.FileName <> "" Then
Text1.Text = cmDlg.FileName
Picture1.Picture = LoadPicture(cmDlg.FileName)

End If
Err:
Exit Sub
End Sub ' wssccc's qq  151884336

Sub isButton4_Click()
On Error GoTo Err
cmDlg.Filter = "*.*"
cmDlg.InitDir = App.Path & "\sounds"
cmDlg.ShowOpen
If cmDlg.FileName <> "" Then
Text3.Text = cmDlg.FileName
End If
Err:
Exit Sub

End Sub ' wssccc's qq  151884336

Private Sub isButton5_Click()
On Error Resume Next
wFlags = SND_ASYNC Or SND_NODEFAULT Or SND_MEMORY
MCISendString "close MyWav", vbNullString, 0, 0
MCISendString "open """ & Text3.Text & """ alias MyWav", vbNullString, 0, 0
MCISendString "play MyWav FROM 0", vbNullString, 0, 0

End Sub ' wssccc's qq  151884336

Private Sub Text1_GotFocus()
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub ' wssccc's qq  151884336

Private Sub Text2_GotFocus()
Text2.SelStart = 0
Text2.SelLength = Len(Text2.Text)
End Sub ' wssccc's qq  151884336

⌨️ 快捷键说明

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