Class ConstructAction.DoubleInput
Defines an input object for an action derived from ConstructAction. This input object extpects the input of a double value. The value may be either entered on the keyboard or by moving the mouse. The calculation of a value from the mouse position is performed via a callback (event) method. Pressing enter or TAB or clicking the mouse proceeds to the next input object.
Inherited Members
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class DoubleInput : ConstructAction.InputObject, ConstructAction.IInputObject
Constructors
| Improve this Doc View SourceDoubleInput(String)
Constructs a DoubleInput object.
Declaration
public DoubleInput(string resourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | the resource id to specify a string from the StringTable. ResourceId+".Label": the Label left of the edit box. ResourceId+".ShortInfo": a short tooltip text ResourceId+"DetailedInfo": a longer tooltip text. |
DoubleInput(String, Double)
Constructs a DoubleInput object with a initial value.
Declaration
public DoubleInput(string resourceId, double startValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | the resource id to specify a string from the StringTable. ResourceId+".Label": the Label left of the edit box. ResourceId+".ShortInfo": a short tooltip text ResourceId+"DetailedInfo": a longer tooltip text. |
| System.Double | startValue | the initial value |
Properties
| Improve this Doc View SourceForwardMouseInputTo
Mouse input should be forwarded to another input object and only processed by this input, when the other input object is fixed.
Declaration
public object ForwardMouseInputTo { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object |
ReadOnly
true: this input field does not accept user input, false: normal input field that requires user input
Declaration
public override bool ReadOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Methods
| Improve this Doc View SourceAdjustHighlight()
Declaration
protected override void AdjustHighlight()
Overrides
| Improve this Doc View SourceForceValue(Double)
Forces the input object to the specified value. The input filed is updated accordingly.
Declaration
public void ForceValue(double val)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | val | the value to set |
Events
| Improve this Doc View SourceCalculateDoubleEvent
Provide a method here, if you want to calculate the length yourself, i.e. if distance from point, line or plane is not appropriate to your needs.
Declaration
public event ConstructAction.DoubleInput.CalculateDoubleDelegate CalculateDoubleEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.DoubleInput.CalculateDoubleDelegate |
GetDoubleEvent
Provide a method here, if the length not only depends from this input, but is also modified by other means.
Declaration
public event ConstructAction.DoubleInput.GetDoubleDelegate GetDoubleEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.DoubleInput.GetDoubleDelegate |
MouseClickEvent
Event that is fired when a mousclick happens and this input has the focus.
Declaration
public event ConstructAction.MouseClickDelegate MouseClickEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.MouseClickDelegate |
SetDoubleEvent
Provide a method here to get the result of this input (and modify your object)
Declaration
public event ConstructAction.DoubleInput.SetDoubleDelegate SetDoubleEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.DoubleInput.SetDoubleDelegate |