📄 judgeedit.frm
字号:
VERSION 5.00
Begin VB.Form JudgeEdit
AutoRedraw = -1 'True
BorderStyle = 1 'Fixed Single
Caption = "判断题管理"
ClientHeight = 6750
ClientLeft = 45
ClientTop = 330
ClientWidth = 9945
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6750
ScaleWidth = 9945
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmdExit
Cancel = -1 'True
Caption = "关闭"
Height = 315
Left = 8310
TabIndex = 29
Top = 6233
Width = 1200
End
Begin VB.Frame fraChangeRecord
Caption = "切换试题"
Height = 1785
Left = 8265
TabIndex = 24
Top = 4110
Width = 1335
Begin VB.CommandButton cmdMoveFirst
Caption = "第一题"
Height = 315
Left = 120
TabIndex = 28
Top = 240
Width = 1095
End
Begin VB.CommandButton cmdMovePre
Caption = "上一题"
Height = 315
Left = 120
TabIndex = 27
Top = 610
Width = 1095
End
Begin VB.CommandButton cmdMoveNext
Caption = "下一题"
Height = 315
Left = 120
TabIndex = 26
Top = 980
Width = 1095
End
Begin VB.CommandButton cmdMoveLast
Caption = "最后题"
Height = 315
Left = 120
TabIndex = 25
Top = 1350
Width = 1095
End
End
Begin VB.Frame fraEditPic
Caption = "编辑图片"
Enabled = 0 'False
Height = 1020
Left = 8265
TabIndex = 17
Top = 2842
Width = 1320
Begin VB.CommandButton cmdAddPic
Caption = "添加图片"
Height = 315
Left = 150
TabIndex = 19
Top = 255
Width = 1095
End
Begin VB.CommandButton cmdDeletePic
Caption = "删除图片"
Height = 315
Left = 135
TabIndex = 18
Top = 592
Width = 1095
End
End
Begin VB.Frame fraEditTest
Caption = "编辑试题"
Height = 1845
Left = 8265
TabIndex = 16
Top = 765
Width = 1320
Begin VB.CommandButton cmdSave
Caption = "保存本题"
Enabled = 0 'False
Height = 315
Left = 135
TabIndex = 23
Top = 1410
Width = 1095
End
Begin VB.CommandButton cmdAdd
Caption = "增加新题"
Height = 315
Left = 135
TabIndex = 22
Top = 1020
Width = 1095
End
Begin VB.CommandButton cmdDelete
Caption = "删除本题"
Height = 315
Left = 135
TabIndex = 21
Top = 630
Width = 1095
End
Begin VB.CommandButton cmdEdit
Caption = "修改本题"
Height = 315
Left = 135
TabIndex = 20
Top = 240
Width = 1095
End
End
Begin VB.Frame fraLevel
Caption = "难度"
Enabled = 0 'False
Height = 525
Left = 2220
TabIndex = 12
Top = 6015
Width = 2490
Begin VB.OptionButton optLevel
Caption = "容易"
Height = 285
Index = 2
Left = 1680
TabIndex = 15
Top = 203
Width = 675
End
Begin VB.OptionButton optLevel
Caption = "一般"
Height = 195
Index = 1
Left = 945
TabIndex = 14
Top = 248
Value = -1 'True
Width = 690
End
Begin VB.OptionButton optLevel
Caption = "难"
Height = 240
Index = 0
Left = 285
TabIndex = 13
Top = 210
Width = 615
End
End
Begin VB.Frame fraAnswer
Caption = "答案"
Enabled = 0 'False
Height = 525
Left = 360
TabIndex = 9
Top = 6015
Width = 1695
Begin VB.OptionButton optAnswerNo
Caption = "错误"
Height = 180
Left = 840
TabIndex = 11
Top = 240
Width = 735
End
Begin VB.OptionButton optAnswerYes
Caption = "正确"
Height = 180
Left = 120
TabIndex = 10
Top = 240
Value = -1 'True
Width = 735
End
End
Begin VB.TextBox txtNews
Height = 300
Left = 4845
Locked = -1 'True
TabIndex = 8
Top = 6240
Width = 3285
End
Begin VB.TextBox txtContent
Height = 5130
Left = 360
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 7
Top = 765
Width = 2415
End
Begin VB.Frame Frame1
Caption = "图片"
Height = 5130
Left = 2925
TabIndex = 5
Top = 765
Width = 5235
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
Height = 4695
Left = 120
ScaleHeight = 4635
ScaleWidth = 4950
TabIndex = 6
Top = 225
Width = 5010
End
End
Begin VB.CommandButton cmdDeleteChapter
Caption = "删除本章"
Height = 315
Left = 8378
TabIndex = 4
Top = 233
Width = 1095
End
Begin VB.CommandButton cmdEditChapter
Caption = "修改章名"
Height = 315
Left = 7116
TabIndex = 3
Top = 233
Width = 1095
End
Begin VB.CommandButton cmdAddChapter
Caption = "添加一章"
Height = 315
Left = 5855
TabIndex = 2
Top = 233
Width = 1095
End
Begin VB.ComboBox cmbChapter
Height = 300
ItemData = "JudgeEdit.frx":0000
Left = 1245
List = "JudgeEdit.frx":0002
Style = 2 'Dropdown List
TabIndex = 1
Top = 255
Width = 4425
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "选择章节:"
Height = 180
Left = 360
TabIndex = 0
Top = 300
Width = 900
End
End
Attribute VB_Name = "JudgeEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit '强制变量在使用前必须定义
Dim objCn As Connection, objRs As Recordset, objRsChapter As Recordset
Dim isAdding As Boolean, picName As String
Private Sub cmbChapter_Click()
If cmbChapter <> "" Then
objRs.Filter = "章节=" & cmbChapter.ItemData(cmbChapter.ListIndex)
If objRs.RecordCount > 0 Then objRs.MoveFirst
Show_Data
Else
objRs.Filter = "章节=-99999"
Show_Data
End If
End Sub
Private Sub cmdAdd_Click()
If cmbChapter = "" Then Exit Sub
isAdding = True
fraChangeRecord.Enabled = False
fraEditPic.Enabled = True
cmdEdit.Enabled = False
cmdDelete.Enabled = False
cmdAdd.Enabled = False
cmdSave.Enabled = True
cmbChapter.Enabled = False
cmdAddChapter.Enabled = False
cmdEditChapter.Enabled = False
cmdDeleteChapter.Enabled = False
fraAnswer.Enabled = True
fraLevel.Enabled = True
txtContent.Locked = False
txtContent = ""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -