Table of Contents

Class ConstructAction.EditInput

Namespace
CADability.Actions
Assembly
CADability.dll

Defines an input object for an action derived from ConstructAction. This input object extpects the user to enter a string in a edit field and is connected to a Text object to provide wysiwyg editing. Pressing enter or TAB or clicking the mouse proceeds to the next input object.

public class ConstructAction.EditInput : ConstructAction.InputObject
Inheritance
ConstructAction.EditInput
Inherited Members

Constructors

EditInput(Text)

Creates a EditInput object

public EditInput(Text theText)

Parameters

theText Text

the Text object it is connected with

Properties

ForwardMouseInputTo

Mouse input should be forwarded to another input object and only processed by this input, when the other input object is fixed.

public object ForwardMouseInputTo { get; set; }

Property Value

object

Value

The current text of the Text object this input is connected with.

public string Value { get; }

Property Value

string

Methods

ForceValue(string)

Replaces the text of the connected Text object by val. Does nothing when the input is ReadOnly.

public void ForceValue(string val)

Parameters

val string

the new text

SetError(string)

Shows errorMessage as an error on the entry of this input in the property page, e.g. when the value entered by the user is not acceptable for the action. The default implementation does nothing; inputs with an edit field forward the message to their property entry, inputs without one ignore it.

public override void SetError(string errorMessage)

Parameters

errorMessage string

The text to display, or an empty string to clear the error

Events

InputValueChangedEvent

Event will be rasied if the Length property changed

public event ConstructAction.EditInput.InputValueChangedDelegate InputValueChangedEvent

Event Type

ConstructAction.EditInput.InputValueChangedDelegate