Skip to content

Commit 58dc3d3

Browse files
authored
fix #78 (#79)
1 parent a20a342 commit 58dc3d3

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

access-add-in/AccUnitLoader.accda

0 Bytes
Binary file not shown.

access-add-in/source/modules/_config_Application.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Option Compare Text
1818
Option Explicit
1919

2020
'Version number
21-
Private Const APPLICATION_VERSION As String = "0.9.1002.241126"
21+
Private Const APPLICATION_VERSION As String = "0.9.1004.250112"
2222

2323
Private Const APPLICATION_NAME As String = "ACLib AccUnit Loader"
2424
Private Const APPLICATION_FULLNAME As String = "Access Code Library - AccUnit Loader"

source/Common/Common.VBIDETools/VbeAdapter.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class VbeAdapter : IDisposable
1010
{
1111
private OfficeApplicationHelper _officeApplicationHelper;
1212

13-
public event EventHandler MainWindowRButtonDown;
13+
//public event EventHandler MainWindowRButtonDown;
1414

1515
public OfficeApplicationHelper OfficeApplicationHelper
1616
{
@@ -20,8 +20,8 @@ public OfficeApplicationHelper OfficeApplicationHelper
2020
using (new BlockLogger())
2121
{
2222
_officeApplicationHelper = value;
23-
HotKeys = new HotKeys((IntPtr)VBE.MainWindow.HWnd);
24-
SubclassVbeMainWindow();
23+
//HotKeys = new HotKeys((IntPtr)VBE.MainWindow.HWnd);
24+
//SubclassVbeMainWindow();
2525
}
2626
}
2727
}
@@ -38,7 +38,7 @@ public _CodePane ActiveCodePane
3838
}
3939

4040
#region subclassing
41-
41+
/*
4242
private void SubclassVbeMainWindow()
4343
{
4444
using (new BlockLogger())
@@ -122,7 +122,7 @@ private void CheckHotKeys(int wParam)
122122
return;
123123
}
124124
}
125-
125+
*/
126126
#endregion
127127

128128
#region IDisposable Support

vbe-add-In/AccUnit.VbeAddIn/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
3232
// indem Sie "*" wie unten gezeigt eingeben:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("0.9.3.0")]
35-
[assembly: AssemblyFileVersion("0.9.3.0")]
34+
[assembly: AssemblyVersion("0.9.4.0")]
35+
[assembly: AssemblyFileVersion("0.9.4.0")]

vbe-add-In/AccUnit.VbeAddIn/TestStarter.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void SubscribeToCommandBarAdapter(VbeCommandBarAdapter commandBarAdapter)
291291
AddRunButtonsToAccUnitCommandBar(accUnitCommandbarAdapter);
292292
}
293293

294-
VbeIntegrationManager.VbeAdapter.MainWindowRButtonDown += OnVbeMainWindowRButtonDown;
294+
//VbeIntegrationManager.VbeAdapter.MainWindowRButtonDown += OnVbeMainWindowRButtonDown;
295295

296296
RegisterHotKeys();
297297
}
@@ -448,12 +448,15 @@ private void ApplyMaskedPicture(CommandBarButton button, Bitmap image, Bitmap ma
448448

449449
private void RegisterHotKeys()
450450
{
451+
//bug: 64 bit subclass => https://github.com/AccessCodeLib/AccUnit/issues/78
452+
/*
451453
var hotkeys = VbeIntegrationManager.VbeAdapter.HotKeys;
452454
var hotKey = hotkeys.RegisterHotKey(HotKey.ModKeys.Control | HotKey.ModKeys.Shift, (uint)Keys.T);
453455
hotKey.Pressed += RunCurrentTestsHotKeyPressed;
454456
455457
hotKey = hotkeys.RegisterHotKey(HotKey.ModKeys.Control | HotKey.ModKeys.Shift, (uint)Keys.A);
456458
hotKey.Pressed += RunAllTestsHotKeyPressed;
459+
*/
457460
}
458461

459462
private void RunCurrentTestsHotKeyPressed(object sender, HotKeyEventArgs e)
@@ -507,6 +510,7 @@ protected virtual void Dispose(bool disposing)
507510

508511
if (VbeIntegrationManager != null)
509512
{
513+
/* issue #78 (sublass vbe main windows)
510514
try
511515
{
512516
VbeIntegrationManager.VbeAdapter.MainWindowRButtonDown -= OnVbeMainWindowRButtonDown;
@@ -519,6 +523,8 @@ protected virtual void Dispose(bool disposing)
519523
{
520524
VbeIntegrationManager = null;
521525
}
526+
*/
527+
VbeIntegrationManager = null;
522528
}
523529

524530
TestSuiteManager = null;

0 commit comments

Comments
 (0)