Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic undo layout arrange (Read 1202 times)
bknaylor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 27th, 2008
undo layout arrange
Aug 27th, 2008 at 1:58pm
Print Post  
Is there a way to filter the undo command manager so that I can undo a layout arrange only?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: undo layout arrange
Reply #1 - Aug 27th, 2008 at 2:15pm
Print Post  
You can filter what commands get stored in the undo history by handling the ActionRecording event. For example, you could set Cancel = true for ModifyCmd objects, which are stored for items modified by the user. The Layout classes create CompositeCmd commands, so set Cancel = false for them.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
bknaylor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 27th, 2008
Re: undo layout arrange
Reply #2 - Aug 27th, 2008 at 2:22pm
Print Post  
This worked. Thank you very much.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint