This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Jason, When I double click somewhere outside of the ControlValve symbol (red circle on the attached picture), it still popups the property window of the valve. What is wrong in my NodeTemplate style? Thank you! Xiaochu
|
|
|
Hello Xiaochu Your node template is fine, our node finding operations (DiagramSurface.FindMouseOverNode) use the rectangular model bounds of the nodes. Even if we used hit-testing, the rectangular MoveThumb would be detected and the result would be the same. If you really need to restrict the double clicking to somewhere over the path, then you may be able to perform a hit testing check to see if the mouse is over a path. Try it out and let me know if you need help, along with a description of how you are currently handling the double click. -Jason Fauchelle |
|
|
Jason, Thank you! After some more thinking, I guess it is ok that double clicking outside of the path triggers the event. In my code, when the double click event triggered, a window pops up for the node property configuration. But there is one difference between in- and out- of path double click, which is after the property configuration window closes, the system behaves as if the left mouse button were down (and starts marquee selection) for out of path double clicking. For inside of path double clicking, everything is fine. Could you please tell me what's wrong here? Best, Xiaochu |
|
|
Thanks Xiaochu This was caused by the DiagramSurface not releasing mouse capture in the scenario of losing focus as a result of double clicking. This will be resolved in the next nightly build. -Jason Fauchelle |
|
|
Jason, Problem is fixed. Thank you! Xiaochu |
|