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

📄 frmoption.frm

📁 高校科研管理信息系统包括科研项目管理、科研成果管理、学术论著管理、机构人员管理、文件资料管理等等
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmOption 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "背景设置"
   ClientHeight    =   1710
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3735
   Icon            =   "frmOption.frx":0000
   LinkTopic       =   "Form5"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1710
   ScaleWidth      =   3735
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command3 
      Caption         =   "确定"
      Height          =   375
      Left            =   720
      TabIndex        =   6
      Top             =   1200
      Width           =   975
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   0
      Top             =   2160
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   375
      Left            =   2520
      TabIndex        =   5
      Top             =   1200
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Caption         =   "背景设置"
      Height          =   975
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   3615
      Begin VB.OptionButton Option1 
         Caption         =   "图片"
         Height          =   255
         Left            =   1080
         TabIndex        =   3
         Top             =   420
         Value           =   -1  'True
         Width           =   855
      End
      Begin VB.OptionButton Option2 
         Caption         =   "颜色"
         Height          =   255
         Left            =   240
         TabIndex        =   2
         Top             =   420
         Width           =   735
      End
      Begin VB.CommandButton Command1 
         Caption         =   ">>>"
         Height          =   375
         Left            =   2760
         TabIndex        =   1
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "设置:"
         Height          =   180
         Left            =   2040
         TabIndex        =   4
         Top             =   450
         Width           =   450
      End
   End
   Begin VB.Image Image2 
      Height          =   375
      Left            =   2040
      Top             =   2280
      Visible         =   0   'False
      Width           =   495
   End
   Begin VB.Image Image1 
      Height          =   375
      Left            =   840
      Top             =   2280
      Visible         =   0   'False
      Width           =   495
   End
End
Attribute VB_Name = "frmOption"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim strSss As String

Private Sub Command1_Click() ''设置
On Error GoTo Err
If Option1.Value = True Then
CommonDialog1.Filter = "BMP文件|*.bmp|JPG文件|*.jpg|GIF文件|*.gif|所有文件|*.*"
CommonDialog1.ShowOpen
strSss = CommonDialog1.FileName
End If
If Option2.Value = True Then
CommonDialog1.ShowColor
strSss = CommonDialog1.Color
End If
Err:

End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click() ''确定
On Error GoTo Err
If strSss = "" Then Exit Sub

If Option1.Value = True Then
Image2.Picture = LoadPicture(strSss)
Mainfrm.Picture1.Refresh
Mainfrm.Picture1.PaintPicture Image2.Picture, Mainfrm.Picture1.ScaleTop, Mainfrm.Picture1.ScaleLeft, Mainfrm.Picture1.ScaleWidth, Mainfrm.Picture1.ScaleHeight

SaveSetting App.Title, "Settings", "BackPic", strSss
End If
If Option2.Value = True Then
Mainfrm.Picture1 = Image1.Picture
Mainfrm.Picture1.Refresh

Mainfrm.Picture1.BackColor = strSss
SaveSetting App.Title, "Settings", "BackColor", strSss
DeleteSetting App.Title, "Settings", "BackPic"

End If

Unload Me
Err:
End Sub

⌨️ 快捷键说明

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