We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

upgrade issus-undo/redo history

Thread ID:

Created:

Updated:

Platform:

Replies:

54744 Jan 16,2007 06:36 PM UTC Jan 20,2007 12:06 AM UTC Windows Forms 1
loading
Tags: Diagram
Lan Mo
Asked On January 16, 2007 06:36 PM UTC

Hi,
upgrade from v3.3.0.0 to v4.4.0.51 in VS2003.
The new version v4.4.0.51 adds more action commands to the undo history. for example, when click and drag to move a node to a new place, if adds 'Move nodes' first, them adds two 'Set Property' commands to the undo history instead of just adding 'Move nodes' to the undo history.
I know why the two 'Set Property' actions happend is because the node has been designed in the way that it changes background color when mouse enters and leaves it.

But our same code in v3.3.0.0 only add 'Move nodes' action to redo history that is perfectly fine.

How can I setup in a way that 'Set Property' action will not be added to undo history? in other words, I only want to 'Insert Node', 'Move Nodes','Delete Node' etc actions to be added to redo history.


Thanks,

Lan

Following code is the Symbol Node class to change its backgroun color when mouse enter and leave the node:

protected override void OnMouseEnter(NodeMouseEventArgs evtArgs)
{
// // TODO: Add ConditionSysbol.OnMouseEnter implementation
if (mOldColor==clsConst.TREE_NULL_COLOR)
{
mOldColor=this.rect.FillStyle.Color;
this.rect.FillStyle.Color =clsConst.TREE_HOVER_COLOR;
Model md=this.Root as Model;
if (md!=null) md.UpdateViews();

}

}

protected override void OnMouseLeave(NodeMouseEventArgs evtArgs)
{
// // TODO: Add ConditionSysbol.OnMouseLeave implementation
if (mOldColor!=clsConst.TREE_NULL_COLOR)
{
this.rect.FillStyle.Color = mOldColor;
mOldColor=clsConst.TREE_NULL_COLOR;
Model md=this.Root as Model;
if (md!=null) md.UpdateViews();
}
}

J.Nagarajan [Syncfusion]
Replied On January 20, 2007 12:06 AM UTC

Hi Lan,

We have made many changes to the SourceCodes of 4.4.0.51 to make the product more flexible,User-Friendly ,to increase the performance etc. The new version (4.4.0.51) includes more action commands including SetPropertyCmd to the Undo history. So the color changed action has been added in the undo history.

I will consult our development team regarding this and let you know.

Thanks for using Syncfusion products.

Regards,
Nagaraj

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;