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
|
Hi, I want forbid user delete node by using Del key, while allow other operation like drag & select element. Are there any easy way to do this. Thank you very much! Andy |
|
|
Hi Andy, The easiest way to prevent the user from deleting any nodes would be to create a class that implements the IDiagramNodeRemover interface. Your implementation of the RemoveNodes method will simply do nothing. Then, set the NodeRemover of your diagram model to be an instance of your custom node remover. Let me know if you have further questions about this. -Jason Fauchelle |
|