Show / Hide Table of Contents

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.

Inheritance
System.Object
ConstructAction.InputObject
ConstructAction.DoubleInput
Inherited Members
ConstructAction.InputObject.Optional
ConstructAction.InputObject.Fixed
ConstructAction.InputObject.ResourceId
ConstructAction.InputObject.constructAction
ConstructAction.InputObject.ShowProperty
ConstructAction.InputObject.Init(ConstructAction)
ConstructAction.InputObject.Refresh()
ConstructAction.InputObject.BuildShowProperty()
ConstructAction.InputObject.AcceptInput(Boolean)
ConstructAction.InputObject.MouseLeft()
ConstructAction.InputObject.OnActionDone()
ConstructAction.InputObject.HasHotspot
ConstructAction.InputObject.HotspotPosition
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class DoubleInput : ConstructAction.InputObject, ConstructAction.IInputObject

Constructors

| Improve this Doc View Source

DoubleInput(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.

| Improve this Doc View Source

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 Source

ForwardMouseInputTo

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
| Improve this Doc View Source

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
ConstructAction.InputObject.ReadOnly

Methods

| Improve this Doc View Source

AdjustHighlight()

Declaration
protected override void AdjustHighlight()
Overrides
ConstructAction.InputObject.AdjustHighlight()
| Improve this Doc View Source

ForceValue(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 Source

CalculateDoubleEvent

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX