On Thu, Jun 26, 2008 at 4:59 PM, Terry Brown <[EMAIL PROTECTED]>
wrote:

>
> But Move would be trickier of course, given the rules about not being
> your own ancestor.  So I guess the polite way would be to attempt to
> move all the nodes selected to the target position, and if it fails,
> abort and do nothing.


I agree.


> Rather than try and work out if a move is valid
> before hand it might be easier to save an undo point (should do that
> anyway), then just back up to it if something goes wrong.


The proper way is to call c.checkMoveWithParentWithWarning.  Please don't
use undo to back out of an improper operation: you will then be creating
even more problems for redo.

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to