PDA

View Full Version : Bring to Front, Exception.


danward79
December 13th, 2005, 10:32 PM
Hi Ben,

Just tried to bring a button to the front. It was in a frame containing to buttons. I selected it using the mouse and then right clicked and selected Bring to front. It gave me the following.


************** Exception Text **************
System.ArgumentException: Cannot add or insert the item 'New Button' in more than one place. You must first remove it from its current location or clone it.
Parameter name: node
at System.Windows.Forms.TreeNodeCollection.Insert(Int 32 index, TreeNode node)
at com.promixis.Commands.ElementZOrderChange.Execute( NRIEditorControl parent)
at com.promixis.Commands.CompoundCommand.Execute(NRIE ditorControl parent)
at com.promixis.Commands.CommandHistory.Execute(Comma ndInterface command)
at com.promixis.Controls.NRIEditorControl.BringElemen tsToFront()
at com.promixis.Controls.RenderControl.contextBringTo Front_Activate(Object sender, EventArgs e)
at TD.SandBar.ButtonItemBase.OnActivate()
at TD.SandBar.k.b(TopLevelMenuItemBase A_0, Boolean A_1, Boolean A_2, Point A_3)
at TD.SandBar.TopLevelMenuItemBase.a(Control A_0, Point A_1, Boolean A_2)
at TD.SandBar.TopLevelMenuItemBase.Show(Control control, Point position)
at com.promixis.Controls.RenderControl.OnMouseUp(Mous eEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************

That is using todays beta. B12.

Ben S
December 14th, 2005, 07:44 AM
In doing this I found a problem with the new copy/paste, but can't replicate this problem. Does this happen every time, Dan?

If you can help me diagnose, I'll fix and reupload (today).

danward79
December 14th, 2005, 08:09 AM
Hi Ben,

I would love to help, but... at the moment I am unable to recreate it. :evil: