-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VB6 project events not working #4046
Comments
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.
The text was updated successfully, but these errors were encountered: