Closed mansellan closed 6 years ago
I've done some more investigation on this. Events from VBProjects and VBComponents are being correctly raised and processed. However, this is not obvious for two reasons:
The good news is that this means this issue has-workaround (be aware that events won't work when running RD from source, and for installed RD make sure the very first thing done after loading RD is to request a parse).
Needless to say, neither are very satisfying...
For sub-issue 1, the easiest fix is to reinstate the original 'dirty hack' of checking the VB6 IDE caption to detect the mode. Perhaps in an if-debug construct to limit it to debug builds.
For sub-issue 2, I need to find a way of forcing a parse on first load. The cleanest way is likely to check at startup for project(s), and manually fire the ProjectAdded event.
OK - following SE chat I'm not going to pursue a fix for point 2 - there's no way to reliably parse on first open where projects load before RD does. Besides, it's not too onerous to require a parse before RD events become active.
Looks like I was wrong on point 1 - I can't get EbMode working at all now, it may have been a short-circuited build that was running when I though I saw it working.
So for now I'm going to go back to querying the main window caption. Not elegant, but it does seem to be fairly reliable.
Several project-level events (Project load \ unload etc) not functional in VB6.