forked from Marshallx/Launch-Base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmSaveVideo.frm
92 lines (87 loc) · 2.79 KB
/
frmSaveVideo.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
VERSION 5.00
Begin VB.Form frmSaveVideo
BorderStyle = 1 'Fixed Single
Caption = "Launch Base: Save Video"
ClientHeight = 1665
ClientLeft = 45
ClientTop = 330
ClientWidth = 4185
Icon = "frmSaveVideo.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1665
ScaleWidth = 4185
StartUpPosition = 2 'CenterScreen
Begin VB.TextBox txtVideoDescription
Height = 285
Left = 120
MaxLength = 64
TabIndex = 1
Text = "No description"
Top = 720
Width = 3975
End
Begin VB.CommandButton cmdOKOptions
Caption = "OK"
Height = 375
Left = 1320
TabIndex = 2
Top = 1200
Width = 1335
End
Begin VB.CommandButton cmdCancelOptions
Caption = "Cancel"
Height = 375
Left = 2760
TabIndex = 3
Top = 1200
Width = 1335
End
Begin VB.Label Label2
Caption = "Click OK to save the video, or click Cancel to delete it."
Height = 255
Left = 120
TabIndex = 4
Top = 360
Width = 3975
End
Begin VB.Label Label1
Caption = "Please enter a short description for the recorded video."
Height = 255
Left = 120
TabIndex = 0
Top = 120
Width = 3975
End
End
Attribute VB_Name = "frmSaveVideo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public CancelVideoSave As Boolean
Private Sub cmdCancelOptions_Click()
CancelVideoSave = True
frmSaveVideo.Hide
End Sub
Private Sub cmdOKOptions_Click()
CancelVideoSave = False
frmSaveVideo.Hide
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode <> 1 Then
Cancel = 1
Call cmdCancelOptions_Click
End If
End Sub
Private Sub txtVideoDescription_Change()
Dim TempString As String
TempString = StripInvalidChars(txtVideoDescription.Text, InvalidFileChars)
If TempString <> txtVideoDescription.Text Then
Call MsgBox("A filename cannot contain any of the following characters: " & InvalidFileChars, vbOKOnly + vbInformation, App.Title)
txtVideoDescription.Text = TempString
SendKeys "{end}"
End If
End Sub