GoDiagram Win Reference
DoEdit Method

Called when a user tries to commit a text edit.
Syntax
'Declaration
 
Public Overridable Function DoEdit( _
   ByVal view As GoView, _
   ByVal oldtext As String, _
   ByVal newtext As String _
) As Boolean
public virtual bool DoEdit( 
   GoView view,
   string oldtext,
   string newtext
)

Parameters

view
oldtext
newtext

Return Value

true to call DoEndEdit to stop editing; false to continue editing. The default value is true.
Remarks

This is normally called from the control that is setting a new string for this text object as a result of the user having finished editing the text. By default it just sets this object's Text property to the result of a call to ComputeEdit: Text = ComputeEdit(oldtext, newtext). You can override this method to prevent the text value from being set, or you can override ComputeEdit to constrain the new text value. If you intend to bring up a message box or other focus-taking activity, call GoView.GoView.DoCancelMouse first, to make sure no tool is started if the user had clicked elsewhere in the view.

Call DoBeginEdit to programmatically have the user start editing this text object; call DoEndEdit to stop any editing that the user might be doing. However, you should not be calling either of those methods from an override of this method.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoText Class
GoText Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback