D
Developer
Hello,
I'm trying to modify one of the Scribble sample apps (C#) such that the user
can draw w/o holding the mouse button down. That is, the first mouse click
turns on drawing, and the second mouse click turns it off.
In the MouseDownHandler, I set the Capture property:
this.Capture = true;
I put some TRACE output in the MouseMove handler; when the cursor leaves the
mdi child window, it stops getting the mouse messages. I though the Capture
property would make sure the window gets all mouse messages until some other
window captured the mouse.
How can I get the desired behavior? I'm just experimenting with this app;
eventually, I'll be drawing rubber band shapes and I need to have the rubber
band drawing track with the mouse, even when it is outside the client
window.
TIA for any ideas.
I'm trying to modify one of the Scribble sample apps (C#) such that the user
can draw w/o holding the mouse button down. That is, the first mouse click
turns on drawing, and the second mouse click turns it off.
In the MouseDownHandler, I set the Capture property:
this.Capture = true;
I put some TRACE output in the MouseMove handler; when the cursor leaves the
mdi child window, it stops getting the mouse messages. I though the Capture
property would make sure the window gets all mouse messages until some other
window captured the mouse.
How can I get the desired behavior? I'm just experimenting with this app;
eventually, I'll be drawing rubber band shapes and I need to have the rubber
band drawing track with the mouse, even when it is outside the client
window.
TIA for any ideas.