📄 skin.frm
字号:
VERSION 5.00
Begin VB.Form skin
BorderStyle = 1 'Fixed Single
Caption = "界面设置"
ClientHeight = 4260
ClientLeft = 45
ClientTop = 330
ClientWidth = 6675
Icon = "skin.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4260
ScaleWidth = 6675
StartUpPosition = 3 '窗口缺省
Begin 美容美发管理系统V2007.XPContainer XPContainer1
Height = 3735
Left = 0
TabIndex = 0
Top = 0
Width = 5535
_ExtentX = 9763
_ExtentY = 6588
Begin 美容美发管理系统V2007.isButton isButton3
Height = 300
Left = 2400
TabIndex = 8
Top = 960
Width = 1095
_ExtentX = 1931
_ExtentY = 529
Caption = "isButton"
IconAlign = 1
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 1
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
End
Begin VB.TextBox txt_lab
Appearance = 0 'Flat
BorderStyle = 0 'None
Height = 255
Left = 1560
TabIndex = 6
Top = 360
Width = 2495
End
Begin 美容美发管理系统V2007.isButton isButton2
Height = 495
Left = 3840
TabIndex = 5
Top = 1200
Width = 1215
_ExtentX = 2143
_ExtentY = 873
Caption = "isButton"
IconAlign = 1
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 1
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
End
Begin VB.TextBox Txt_Bg
Appearance = 0 'Flat
BorderStyle = 0 'None
Height = 255
Left = 120
TabIndex = 4
Top = 1320
Width = 3365
End
Begin 美容美发管理系统V2007.isButton isButton1
Height = 495
Left = 4200
TabIndex = 2
Top = 240
Width = 1215
_ExtentX = 2143
_ExtentY = 873
Caption = "isButton"
IconAlign = 1
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 1
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
End
Begin VB.Image Image1
BorderStyle = 1 'Fixed Single
Height = 1815
Left = 2280
Stretch = -1 'True
Top = 1800
Width = 3135
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "背景图片预览:"
Height = 255
Left = 360
TabIndex = 7
Top = 2520
Width = 1335
End
Begin VB.Shape Shape2
BorderColor = &H00808080&
BorderWidth = 2
Height = 265
Left = 1560
Top = 360
Width = 2505
End
Begin VB.Shape Shape1
BorderColor = &H00808080&
BorderWidth = 2
Height = 270
Left = 120
Top = 1320
Width = 3375
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 0
X2 = 5520
Y1 = 840
Y2 = 840
End
Begin VB.Line Line1
BorderColor = &H00C0C0C0&
BorderWidth = 2
X1 = 0
X2 = 5520
Y1 = 840
Y2 = 840
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "软件背景图设置(图片地址:)"
Height = 255
Left = 120
TabIndex = 3
Top = 1000
Width = 2295
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "软件标题设置:"
Height = 255
Left = 120
TabIndex = 1
Top = 480
Width = 1215
End
End
End
Attribute VB_Name = "skin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'ini文件操作
Private Declare Function GetPrivateProfileString Lib "kernel32" _
Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, _
ByVal lpKeyName As Any, ByVal lpDefault As String, _
ByVal lpReturnedString As String, ByVal nSize As Long, _
ByVal lpFileName As String) As Long
Private Declare Function WritePrivateProfileString Lib "kernel32" _
Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, _
ByVal lpKeyName As Any, ByVal lpString As Any, _
ByVal lpFileName As String) As Long
Private Sub Form_Load()
Dim ret As Long
Dim buff As String
Dim cap As String
Dim bg As String
buff = String(255, 0)
ret = GetPrivateProfileString("软件设置", "软件标题设置", cap, buff, 256, App.Path & "\set.ini")
cap = buff
txt_lab.Text = cap
ret = GetPrivateProfileString("软件设置", "背景设置", bg, buff, 256, App.Path & "\set.ini")
bg = buff
Txt_Bg.Text = bg
Image1.Picture = LoadPicture(Txt_Bg.Text)
End Sub
Private Sub isButton1_Click()
success = WritePrivateProfileString("软件设置", "软件标题设置", txt_lab.Text, App.Path & "\set.ini")
MsgBox "设置软件标题成功", vbInformation
End Sub
Private Sub isButton2_Click()
Dim success As String
success = WritePrivateProfileString("软件设置", "背景设置", Txt_Bg.Text, App.Path & "\set.ini")
MsgBox "设置软件背景成功", vbInformation
End Sub
Private Sub isButton3_Click()
Dim sFile As String
sFile = ShowOpen
If sFile <> "" Then
Image1.Picture = LoadPicture(sFile)
Txt_Bg.Text = sFile
Else
MsgBox "您没有选择任何图形文件"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -