john-tvh / VBE_Extras

VBE Extras ... extending the VBA editor
https://www.thevbahelp.com/vbe-extras
1 stars 0 forks source link

The VBE_Extras Toolbar repeatedly moves out of position (having briefly moved into the correct position) when Live Code Info is running #20

Closed john-tvh closed 10 months ago

john-tvh commented 10 months ago

Describe the bug The VBE_Extras Toolbar repeatedly moves out of position (having briefly moved into the correct position) when Live Code Info is running and new info is being displayed.

To Reproduce Steps to reproduce the behavior:

  1. Open the VBE, start Live Code Info
  2. Move caret repeatedly onto, and then away from, a declaration/reference (ie to make Live Code Info 'show info')

Screenshots If applicable, add screenshots to help explain your problem. Capture

Please complete the following information: VBE_Extras v1.4.2.0 [Debug], build 23 Nov 2023 17:31:28 LGF: v2.2.0.0 LGS: v3.1.9.0 LFF: v4.0.0.0 VEH: v20230831.05 .NET Framework 4.8.9181.0 CLR: v4.0.30319 Microsoft Windows 10.0.19045 : X64 Dev device Excel 365 (16.0, 17029, WIN64, VBA7) VBE 7.01.1131 UI Lang: en-US (menu names English) Host: EXCEL.EXE v16.0.17029.20028 Exp: S-GET, S-CCAS, RAM

john-tvh commented 10 months ago

This is associated with the Scale (i.e. on the desktop, right click and select Display Settings, then under Scale and Layout note the percentage for 'Change the size of text, apps and other items') in use for the screen(s) being used.

The problem seems to happen when:

  1. If only using one screen (or using multiple screens but the host app and VBE are always on the same primary screen) - the Scale for the screen has been changed since the host app was started (this will also be a problem if the Scale was changed since the VBE was started, but it is the starting of the host app that counts).
  2. If using multiple screens - the Scale on the two screens is different and either the host app or the VBE is (or has been) shown on different screens.

However, the problem is not experienced on all devices ... possibly it does not happen for those running 32-bit Office (and hence 32-bit VBA in a 32-bit VBE) but does happen for those running 64-bit Office.

Further investigation ongoing ...

john-tvh commented 10 months ago

Workaround added in release 1.4.3.0