L
Luka
Hi, I'm betting there is a trivial solution to this but I've spent
hours now trying to get it to work.
I have a panel to which I dynamically add controls at run-time. I want
the user to be able to draw lines between the controls in the
following manner:
1) MouseDown on ControlA and drag to ControlB which is connected on
MouseUp.
2) During the MouseMove a line to the current mouse position should be
drawn.
3) On the first MouseDown the selected control should be highlighted
4) On MouseEnter, the target control should be highlighted.
Problem: Once I start dragging (mousebutton + move), the first control
hogs the mouse events. Even when I do a MouseUp (or any other mouse
command for that matter) on another control, the first one responds.
I've tried just about everything I can think of, including forcing
focus/selection to the main panel but nothing has worked.
Any help would be greatly appreciated.
hours now trying to get it to work.
I have a panel to which I dynamically add controls at run-time. I want
the user to be able to draw lines between the controls in the
following manner:
1) MouseDown on ControlA and drag to ControlB which is connected on
MouseUp.
2) During the MouseMove a line to the current mouse position should be
drawn.
3) On the first MouseDown the selected control should be highlighted
4) On MouseEnter, the target control should be highlighted.
Problem: Once I start dragging (mousebutton + move), the first control
hogs the mouse events. Even when I do a MouseUp (or any other mouse
command for that matter) on another control, the first one responds.
I've tried just about everything I can think of, including forcing
focus/selection to the main panel but nothing has worked.
Any help would be greatly appreciated.