1
1
Attribute VB_Name = "_config_Application"
2
2
'---------------------------------------------------------------------------------------
3
+ ' Modul: _initApplication
4
+ '---------------------------------------------------------------------------------------
5
+ '/**
6
+ ' <summary>
7
+ ' Application configuration
8
+ ' </summary>
9
+ ' <remarks>
10
+ ' </remarks>
11
+ '**/
12
+ '---------------------------------------------------------------------------------------
3
13
'<codelib>
4
14
' <file>%AppFolder%/source/_config_Application.bas</file>
5
- ' <replace>base/_config_Application.bas</replace> 'dieses Modul ersetzt base/_config_Application.bas
15
+ ' <replace>base/_config_Application.bas</replace>
6
16
' <license>_codelib/license.bas</license>
7
17
' <use>%AppFolder%/source/defGlobal_ACLibFilterFormWizard.bas</use>
8
18
' <use>base/_initApplication.bas</use>
@@ -15,20 +25,20 @@ Attribute VB_Name = "_config_Application"
15
25
'</codelib>
16
26
'---------------------------------------------------------------------------------------
17
27
'
18
- ' Nicht vergessen: USELOCALIZATION = 1 als Compiler-Arg. in Projekteigenschaft einstellen
28
+ ' Don't forget: set USELOCALIZATION = 1 as Compiler argument in Project properties
19
29
'
20
30
'
21
31
Option Compare Database
22
32
Option Explicit
23
33
Option Private Module
24
34
25
- 'Versionsnummer
26
- Private Const APPLICATION_VERSION As String = "1.7.1 " '2023-03-01
35
+ 'Version
36
+ Private Const APPLICATION_VERSION As String = "1.8.0 " '2023-05
27
37
28
38
#Const USE_CLASS_APPLICATIONHANDLER_APPFILE = 1
29
39
#Const USE_CLASS_APPLICATIONHANDLER_VERSION = 1
30
40
31
- Private Const APPLICATION_NAME As String = "ACLib FilterForm Wizard"
41
+ Public Const APPLICATION_NAME As String = "ACLib FilterForm Wizard"
32
42
Private Const APPLICATION_FULLNAME As String = "Access Code Library - FilterForm Wizard"
33
43
Private Const APPLICATION_TITLE As String = APPLICATION_FULLNAME
34
44
Private Const APPLICATION_ICONFILE As String = "ACLib.ico"
@@ -49,9 +59,9 @@ Private m_Extensions As ApplicationHandler_ExtensionCollection
49
59
'---------------------------------------------------------------------------------------
50
60
'/**
51
61
' <summary>
52
- ' Konfigurationseinstellungen initialisieren
62
+ ' Init application configuration
53
63
' </summary>
54
- ' <param name="oCurrentAppHandler">Möglichkeit einer Referenzübergabe, damit nicht CurrentApplication genutzt werden muss </param>
64
+ ' <param name="CurrentAppHandlerRef">Possibility of a reference transfer so that CurrentApplication does not have to be used </param>
55
65
' <returns></returns>
56
66
' <remarks>
57
67
' </remarks>
@@ -62,47 +72,39 @@ Public Sub InitConfig(Optional ByRef CurrentAppHandlerRef As ApplicationHandler
62
72
On Error GoTo HandleErr
63
73
64
74
'----------------------------------------------------------------------------
65
- ' Fehlerbehandlung
75
+ ' Error handler
66
76
'
67
77
68
78
modErrorHandler.DefaultErrorHandlerMode = DefaultErrorHandlerMode
69
79
70
-
71
- '----------------------------------------------------------------------------
72
- ' Globale Variablen einstellen
73
- '
74
- 'defGlobal_FilterFormWizard.ACLibIconFileName = m_ApplicationIconFile
75
-
76
-
77
80
'----------------------------------------------------------------------------
78
- ' Anwendungsinstanz einstellen
81
+ ' Application instance
79
82
'
80
83
If CurrentAppHandlerRef Is Nothing Then
81
84
Set CurrentAppHandlerRef = CurrentApplication
82
85
End If
83
86
84
87
With CurrentAppHandlerRef
85
88
86
- 'Zur Sicherheit AccDb einstellen
87
- Set .AppDb = CodeDb 'muss auf CodeDb zeigen ,
88
- 'da diese Anwendung als Add-In verwendet wird
89
+ 'To be on the safe side, set AccDb
90
+ Set .AppDb = CodeDb 'must point to CodeDb ,
91
+ 'as this application is used as an add-in
89
92
90
- 'Anwendungsname
93
+ 'Application name
91
94
.ApplicationName = APPLICATION_NAME
92
95
.ApplicationFullName = APPLICATION_FULLNAME
93
96
.ApplicationTitle = APPLICATION_TITLE
94
97
95
98
'Version
96
99
.Version = APPLICATION_VERSION
97
100
98
- ' Formular, das am Ende von CurrentApplication.Start aufgerufen wird
101
+ 'Form called at the end of CurrentApplication.Start
99
102
.ApplicationStartFormName = ApplicationStartFormName
100
-
101
103
102
104
End With
103
105
104
106
'----------------------------------------------------------------------------
105
- ' Erweiterungen :
107
+ ' Extensions :
106
108
'
107
109
Set m_Extensions = New ApplicationHandler_ExtensionCollection
108
110
With m_Extensions
@@ -118,13 +120,6 @@ On Error GoTo HandleErr
118
120
119
121
End With
120
122
121
- '----------------------------------------------------------------------------
122
- ' Konfiguration nach Erweiterungen
123
- '
124
-
125
- 'AppIcon
126
- 'oCurrentAppHandler.SetAppIcon CodeProject.Path & "\" & m_ApplicationIconFile, True
127
-
128
123
ExitHere:
129
124
Exit Sub
130
125
@@ -143,11 +138,11 @@ End Sub
143
138
144
139
'############################################################################
145
140
'
146
- ' Funktionen für die Anwendungswartung
147
- ' (werden nur im Anwendungsentwurf benötigt )
141
+ ' Functions for application maintenance
142
+ ' (only needed in the application design )
148
143
'
149
144
'----------------------------------------------------------------------------
150
- ' Hilfsfunktion zum Speichern von Dateien in die lokale AppFile-Tabelle
145
+ ' Auxiliary function for saving files to the local AppFile table
151
146
'----------------------------------------------------------------------------
152
147
Private Sub SetAppFiles ()
153
148
Call CurrentApplication .Extensions ("AppFile" ).SaveAppFile("AppIcon" , CodeProject.Path & "\" & APPLICATION_ICONFILE)
0 commit comments