I have in a panel a GDI drawing with some objects.
When the user clicks on one object, this object should be selected, if doubleClicks on it, a new pop-up (properties) window should open.
Now, I overrided
OnMouseClick
=> obj.Selected = Not obj.Selected
OnMouseDoubleClick
=> (New Properties(obj)).ShowDialog()
The problem is that when the pop-up opens (because of DoubleClick), the object became selected (because of the Click). Is there away to avoid (ignore) this intermediate Click?
(Say, in the real project I don't use click but even MouseDown
, however, the question remain the same)