Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic UndoRedo grouping for multiple nodes being moved (Read 1570 times)
MavinTech
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 19
Joined: Jul 30th, 2020
UndoRedo grouping for multiple nodes being moved
Feb 16th, 2021 at 3:01pm
Print Post  
I am performing some custom actions in the OnNodeModified handler.  When multiple nodes are selected and moved, this handler is fired once for each node for movement.  That's fine until I need to perform an undo.  How do I know within the handler that it will be firing multiple times so that I can group my actions into a single command?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: UndoRedo grouping for multiple nodes being moved
Reply #1 - Feb 17th, 2021 at 9:08am
Print Post  
You could defer your custom actions to SelectionModified handler when you detect Selection.Items.Count > 1.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint