Class ConstructAction.IntInput
Defines an input object for an action derived from ConstructAction. This input object extpects the user to enter a integer value in a edit field. 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 IntInput : ConstructAction.InputObject, ConstructAction.IInputObject
Constructors
| Improve this Doc View SourceIntInput(String)
Creates a IntInput field with no initial value
Declaration
public IntInput(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. |
IntInput(String, Int32)
Creates a IntInput field with an initial value
Declaration
public IntInput(string resourceId, int 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.Int32 | StartValue | 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 |
IntValue
Declaration
public int IntValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceAdjustHighlight()
Declaration
protected override void AdjustHighlight()
Overrides
| Improve this Doc View SourceSetMinMax(Int32, Int32, Boolean)
Sets the limits for the input ad determins whether an up/down control is displayed
Declaration
public void SetMinMax(int min, int max, bool showupdown)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | min | minimum input value |
| System.Int32 | max | maximum input value |
| System.Boolean | showupdown | true: show up/down control |
Events
| Improve this Doc View SourceCalculateIntEvent
Provide a method here, if you want to calculate the int from a mouse position.
Declaration
public event ConstructAction.IntInput.CalculateIntDelegate CalculateIntEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.IntInput.CalculateIntDelegate |
GetIntEvent
Provide a handler here when the integer value is modified by other means than simple user input (e.g. by mouse movement)
Declaration
public event ConstructAction.IntInput.GetIntDelegate GetIntEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.IntInput.GetIntDelegate |
SetIntEvent
Provide a handler here to be able to react on input changes
Declaration
public event ConstructAction.IntInput.SetIntDelegate SetIntEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.IntInput.SetIntDelegate |