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

📄 frmsysset.frm

📁 传奇网吧伴侣源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSysSet 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "==传奇软件=="
   ClientHeight    =   6720
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8205
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6720
   ScaleWidth      =   8205
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command4 
      Caption         =   "滚动广告条设置"
      Height          =   375
      Left            =   6600
      TabIndex        =   26
      Top             =   2040
      Width           =   1455
   End
   Begin VB.Frame Frame3 
      Caption         =   "系统设置:"
      Height          =   975
      Left            =   120
      TabIndex        =   23
      Top             =   5640
      Width           =   6255
      Begin VB.CheckBox Check2 
         Caption         =   "在屏幕左上角显示滚动广告条!"
         Height          =   255
         Left            =   120
         TabIndex        =   25
         Top             =   600
         Width           =   4695
      End
      Begin VB.CheckBox Check1 
         Caption         =   "电脑空闲五分种后自动关机!"
         Height          =   255
         Left            =   120
         TabIndex        =   24
         Top             =   240
         Width           =   4215
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "使用说明"
      Height          =   375
      Left            =   6600
      TabIndex        =   22
      Top             =   1440
      Width           =   1455
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取   消"
      Height          =   375
      Left            =   6600
      TabIndex        =   21
      Top             =   840
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确   定"
      Height          =   375
      Left            =   6600
      TabIndex        =   20
      Top             =   240
      Width           =   1455
   End
   Begin VB.Frame Frame2 
      Caption         =   "电脑空闲时广告词:"
      Height          =   2175
      Left            =   120
      TabIndex        =   9
      Top             =   3360
      Width           =   6255
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   7
         Left            =   1080
         TabIndex        =   17
         Text            =   "本机空闲"
         Top             =   1680
         Width           =   5055
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   6
         Left            =   1080
         TabIndex        =   15
         Text            =   "欢迎您光临!"
         Top             =   1200
         Width           =   5055
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   5
         Left            =   1080
         TabIndex        =   13
         Text            =   "科技提高效率,技术改变生活!"
         Top             =   720
         Width           =   5055
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   4
         Left            =   1080
         TabIndex        =   11
         Text            =   "传奇设计"
         Top             =   240
         Width           =   5055
      End
      Begin VB.Label Label1 
         Caption         =   "第四句:"
         Height          =   255
         Index           =   7
         Left            =   120
         TabIndex        =   16
         Top             =   1800
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "第三句:"
         Height          =   255
         Index           =   6
         Left            =   120
         TabIndex        =   14
         Top             =   1320
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "第二句:"
         Height          =   255
         Index           =   5
         Left            =   120
         TabIndex        =   12
         Top             =   840
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "第一句:"
         Height          =   255
         Index           =   4
         Left            =   120
         TabIndex        =   10
         Top             =   360
         Width           =   1335
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "基本资料设置:"
      Height          =   3135
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   6255
      Begin VB.TextBox Text1 
         Height          =   975
         Index           =   8
         Left            =   1080
         MaxLength       =   300
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   19
         Text            =   "frmSysSet.frx":0000
         Top             =   2040
         Width           =   5055
      End
      Begin VB.TextBox Text1 
         Height          =   735
         Index           =   3
         Left            =   1080
         MaxLength       =   200
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   8
         Text            =   "frmSysSet.frx":0045
         Top             =   1200
         Width           =   5055
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   2
         Left            =   4200
         TabIndex        =   6
         Text            =   "步惊云"
         Top             =   240
         Width           =   1935
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   1
         Left            =   1080
         TabIndex        =   4
         Text            =   "九州天下会"
         Top             =   720
         Width           =   5055
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Index           =   0
         Left            =   1080
         TabIndex        =   2
         Text            =   "天下网吧"
         Top             =   240
         Width           =   1935
      End
      Begin VB.Label Label1 
         Caption         =   "网吧简介:"
         Height          =   255
         Index           =   8
         Left            =   120
         TabIndex        =   18
         Top             =   2160
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "欢迎词:"
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   7
         Top             =   1320
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "老板姓名:"
         Height          =   255
         Index           =   2
         Left            =   3240
         TabIndex        =   5
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "网吧地址:"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   3
         Top             =   840
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "网吧名称:"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   1
         Top             =   360
         Width           =   1335
      End
   End
End
Attribute VB_Name = "frmSysSet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private r As Long
Private Entry As String
Private iniPath As String

Private Sub Check2_Click()
Debug.Print Check2.Value
End Sub

Private Sub Command1_Click()
'保存设置
'Text1(0).Text = GetFromINI("注册信息", "序列号", iniPath)
Entry$ = Text1(0).Text
'MsgBox entry$
r = WritePrivateProfileString("基本资料设置", "网吧名称", Entry, iniPath)
If r <> 1 Then MsgBox "写序列号出错!"
Entry$ = Text1(1).Text
'MsgBox entry$
r = WritePrivateProfileString("基本资料设置", "网吧地址", Entry, iniPath)
Entry$ = Text1(2).Text
'MsgBox entry$
r = WritePrivateProfileString("基本资料设置", "老板姓名", Entry, iniPath)
Entry$ = Text1(3).Text
'MsgBox entry$
r = WritePrivateProfileString("基本资料设置", "欢迎词", Entry, iniPath)
Entry$ = Text1(8).Text
'MsgBox entry$
r = WritePrivateProfileString("基本资料设置", "网吧简介", Entry, iniPath)

Entry$ = Text1(4).Text
'MsgBox entry$
r = WritePrivateProfileString("电脑空闲时广告词", "第一句", Entry, iniPath)
Entry$ = Text1(5).Text
'MsgBox entry$
r = WritePrivateProfileString("电脑空闲时广告词", "第二句", Entry, iniPath)
Entry$ = Text1(6).Text
'MsgBox entry$
r = WritePrivateProfileString("电脑空闲时广告词", "第三句", Entry, iniPath)
Entry$ = Text1(7).Text
'MsgBox entry$
r = WritePrivateProfileString("电脑空闲时广告词", "第四句", Entry, iniPath)
Entry$ = Str(Check1.Value)
r = WritePrivateProfileString("系统设置", "自动关机", Entry, iniPath)
Entry$ = Str(Check2.Value)
r = WritePrivateProfileString("系统设置", "滚动广告条", Entry, iniPath)
'Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command4_Click()
'打开滚动广告词编辑器
frmADText.Show
End Sub

Private Sub Form_Load()
On Error GoTo ErrCode7:
iniPath$ = App.Path + "\SysSet.ini"
If Dir(iniPath) <> "" Then
LoadSysSet
End If

Exit Sub
ErrCode7:
MsgBox "传奇网吧伴侣无法正确保存设计,请查看目录权限或重新下载或安装!", , "保存设置出错"
Unload Me

End Sub

Private Sub LoadSysSet()
'读取资料
Text1(0).Text = GetFromINI("基本资料设置", "网吧名称", iniPath)
Text1(1).Text = GetFromINI("基本资料设置", "网吧地址", iniPath)
Text1(2).Text = GetFromINI("基本资料设置", "老板姓名", iniPath)
'MsgBox GetFromINI("基本资料设置", "欢迎词", iniPath)
Text1(3).Text = GetFromINI("基本资料设置", "欢迎词", iniPath)
Text1(8).Text = GetFromINI("基本资料设置", "网吧简介", iniPath)

Text1(4).Text = GetFromINI("电脑空闲时广告词", "第一句", iniPath)
Text1(5).Text = GetFromINI("电脑空闲时广告词", "第二句", iniPath)
Text1(6).Text = GetFromINI("电脑空闲时广告词", "第三句", iniPath)
Text1(7).Text = GetFromINI("电脑空闲时广告词", "第四句", iniPath)
Check1.Value = Val(GetFromINI("系统设置", "自动关机", iniPath))
Check2.Value = Val(GetFromINI("系统设置", "滚动广告条", iniPath))
End Sub

⌨️ 快捷键说明

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