2013-08-29 14:18 UTC
Hi
I am working on a little tool, that causes some weird reactions in AutoCAD during development (While VLIDE is opened).
The tool itself is a screenmenu replacement (I wrote about it last year) and is working fine on AutoCAD and BricsCAD.
If only AutoCAD is active everything is fine. The MouseMovedOff event is triggered correctly.
When VLIDE is active I cannot activate AutoCAD without the Button from VLIDE. Usually I need to press it 3-5 times to return to AutoCAD
What I can see is, that, if I move the mouse from AutoCAD to VLIDE over my form, the MouseMove events are fired correctly (they cause highlighting of lines of the screenmenu) but the MouseMovedOff event is not executed (it removes all highlighting) which causes the last highlighted line to stay that way.
If VLIDE is closed and another application is activated all the events are fired fine and there are no problems.
Has anybody got an idea how to work around this?
I tried hooking a command-reactor to "_VLIDE" but it is not called if I switch to VLIDE by just switching windows (I run AutoCAD and VLIDE on different monitors) because AutoCAD doen't call the command-reactor.
I don't care if a sollution is clean or dirty since the problem only occurs during development and not during productive work, so I would be fine if someone had an idea how to react to "AuoCAD lost focus" and "AutoCAD got focus" to close the form and open it again on entering AutoCAD.
I hope someone has an idea how to solve this problem.
Kind regards
Ingo P
I am working on a little tool, that causes some weird reactions in AutoCAD during development (While VLIDE is opened).
The tool itself is a screenmenu replacement (I wrote about it last year) and is working fine on AutoCAD and BricsCAD.
If only AutoCAD is active everything is fine. The MouseMovedOff event is triggered correctly.
When VLIDE is active I cannot activate AutoCAD without the Button from VLIDE. Usually I need to press it 3-5 times to return to AutoCAD
What I can see is, that, if I move the mouse from AutoCAD to VLIDE over my form, the MouseMove events are fired correctly (they cause highlighting of lines of the screenmenu) but the MouseMovedOff event is not executed (it removes all highlighting) which causes the last highlighted line to stay that way.
If VLIDE is closed and another application is activated all the events are fired fine and there are no problems.
Has anybody got an idea how to work around this?
I tried hooking a command-reactor to "_VLIDE" but it is not called if I switch to VLIDE by just switching windows (I run AutoCAD and VLIDE on different monitors) because AutoCAD doen't call the command-reactor.
I don't care if a sollution is clean or dirty since the problem only occurs during development and not during productive work, so I would be fine if someone had an idea how to react to "AuoCAD lost focus" and "AutoCAD got focus" to close the form and open it again on entering AutoCAD.
I hope someone has an idea how to solve this problem.
Kind regards
Ingo P