Topic: Graph.OnNewElem doesn't register on pasted elements?
Greetings,
My topic title says it all. But I like to overexplain stuff Here:
I verify that a script action meets the conditions to be Enabled when FunctionList elements are added, or removed.
It works for creation (OnNewElem), deletion (OnDelete) and cutting to clipboard (I guess it registers in OnDelete), but it doesn't work for pasting a new element in the grf file.
Is it possible that Graph.OnNewElem isn't executed when a new element is pasted from the clipboard?
Thanks for the help!
Action = Graph.CreateAction(Caption="Y-Offset Unit PtSeries", OnExecute=Execute, Hint="")
Graph.AddActionToMainMenu(Action)
Graph.OnNew.append(VerifActiverYOffset)
Graph.OnNewElem.append(VerifActiverYOffset)
Graph.OnDelete.append(VerifActiverYOffsetOnDelete)