-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFolderBrowserViewTemplate.frm
76 lines (60 loc) · 1.85 KB
/
FolderBrowserViewTemplate.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
VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FolderBrowserViewTemplate
ClientHeight = 5295
ClientLeft = 45
ClientTop = 390
ClientWidth = 6975
OleObjectBlob = "FolderBrowserViewTemplate.frx":0000
StartUpPosition = 1 'CenterOwner
End
Attribute VB_Name = "FolderBrowserViewTemplate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'===============================================================================
' # State
Public IsOk As Boolean
Public IsCancel As Boolean
Private SourceFolder As FolderBrowserHandler
Private OutputFolder As FolderBrowserHandler
'===============================================================================
' # Constructor
Private Sub UserForm_Initialize()
Set SourceFolder = _
FolderBrowserHandler.New_(SourceFolderBox, SourceFolderBrowse)
Set OutputFolder = _
FolderBrowserHandler.New_(OutputFolderBox, OutputFolderBrowse)
End Sub
'===============================================================================
' # Handlers
Private Sub UserForm_Activate()
'
End Sub
Private Sub btnOk_Click()
FormÎÊ
End Sub
Private Sub btnCancel_Click()
FormCancel
End Sub
'===============================================================================
' # Logic
Private Sub FormÎÊ()
Hide
IsOk = True
End Sub
Private Sub FormCancel()
Hide
IsCancel = True
End Sub
'===============================================================================
' # Helpers
'===============================================================================
' # Boilerplate
Private Sub UserForm_QueryClose(Ñancel As Integer, CloseMode As Integer)
If CloseMode = VbQueryClose.vbFormControlMenu Then
Ñancel = True
FormCancel
End If
End Sub