Cancel: Boolean;
The Cancel property determines whether the connecting line end point is shifted.
Executing the example requires a form with the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1 component. The specified procedure is a handler of the OnBeforeMoveCP event.
Add links to the Andy, ExtCtrls, Forms, and Workspace system assemblies.
Sub WorkspaceBox1OnBeforeMoveCP(Sender: Object; Args: IMoveCPEventArgs);
Begin
Args.Cancel := True;
End Sub WorkspaceBox1OnBeforeMoveCP;
After executing the event the shift of the end points of the connecting lines is canceled.
See also: