-
Notifications
You must be signed in to change notification settings - Fork 1
/
frmEditPlayList.frm
124 lines (116 loc) · 3.29 KB
/
frmEditPlayList.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
VERSION 5.00
Begin VB.Form frmEditPlayList
AutoRedraw = -1 'True
BorderStyle = 3 'Fixed Dialog
Caption = "编辑播放列表项目"
ClientHeight = 1440
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 6060
Icon = "frmEditPlayList.frx":0000
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
NegotiateMenus = 0 'False
ScaleHeight = 1440
ScaleWidth = 6060
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin Othello.FlatButton fltbtnCancel
Cancel = -1 'True
Height = 330
Left = 4905
TabIndex = 3
Top = 1005
Width = 1005
_extentx = 1773
_extenty = 582
caption = "取消"
mousepointer = 99
style = 2
font = "frmEditPlayList.frx":000C
enablehot = -1 'True
forecolor = 0
End
Begin Othello.FlatButton fltbtnOK
Default = -1 'True
Height = 330
Left = 3780
TabIndex = 2
Top = 1005
Width = 1005
_extentx = 1773
_extenty = 582
caption = "确定"
mousepointer = 99
style = 2
font = "frmEditPlayList.frx":0030
enablehot = -1 'True
forecolor = 0
End
Begin VB.TextBox txtNew
Height = 330
Left = 795
TabIndex = 1
Top = 540
Width = 5130
End
Begin VB.TextBox txtOld
BackColor = &H8000000F&
Height = 345
Left = 795
Locked = -1 'True
TabIndex = 0
Top = 180
Width = 5130
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "新项目:"
Height = 180
Left = 135
TabIndex = 5
Top = 600
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "旧项目:"
Height = 180
Left = 135
TabIndex = 4
Top = 255
Width = 630
End
End
Attribute VB_Name = "frmEditPlayList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mstrItem As String
Public Function ShowEx(ByVal Item As String) As String
On Error Resume Next
txtOld.Text = Item
txtNew.Text = Item
Call Show(vbModal, MainForm)
ShowEx = mstrItem
End Function
Private Sub fltbtnCancel_Click(Button As Integer)
mstrItem = ""
Call Unload(Me)
End Sub
Private Sub fltbtnOK_Click(Button As Integer)
mstrItem = txtNew.Text
Call Unload(Me)
End Sub
Private Sub Form_Activate()
Call SetControlFocus(txtNew)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frmEditPlayList = Nothing
End Sub
Private Sub txtNew_GotFocus()
Call AutoSelectText(txtNew)
End Sub