Class ConstructAction.MultipleChoiceInput
Defines an input object for an action derived from ConstructAction. This input object extpects the input of a integer value. The integer value is entered in a editbox and/or with an up/down control. 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 MultipleChoiceInput : ConstructAction.InputObject, ConstructAction.IInputObject
Constructors
| Improve this Doc View SourceMultipleChoiceInput(String, String)
Constructs a MultipleChoiceInput object with no initial value
Declaration
public MultipleChoiceInput(string resourceId, string resourceIdValues)
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.String | resourceIdValues | resource id of the strings for the values starting with a delimiter and seperated by the same delimiter e.g. "|first|second|third" |
MultipleChoiceInput(String, String, Int32)
Constructs a MultipleChoiceInput object with no initial value
Declaration
public MultipleChoiceInput(string resourceId, string resourceIdValues, 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.String | resourceIdValues | resource id of the strings for the values starting with a delimiter and seperated by the same delimiter e.g. "|first|second|third" |
| System.Int32 | StartValue | the initial value |
MultipleChoiceInput(String, String[], Int32)
Declaration
public MultipleChoiceInput(string resourceId, string[] values, int StartValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | |
| System.String[] | values | |
| System.Int32 | StartValue |
Fields
| Improve this Doc View SourceDefaultChoice
Sets a DefaultInteger, which should be a static value, that carries the last input value of this vector to the next instantiation of the action.
Declaration
public ConstructAction.DefaultInteger DefaultChoice
Field Value
| Type | Description |
|---|---|
| ConstructAction.DefaultInteger |
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
Declaration
public override bool ReadOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Events
| Improve this Doc View SourceGetChoiceEvent
Provide a method here, if the integer value not only depends from this input, but is also modified by other means.
Declaration
public event ConstructAction.MultipleChoiceInput.GetChoiceDelegate GetChoiceEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.MultipleChoiceInput.GetChoiceDelegate |
SetChoiceEvent
Provide a method here to get the result of this input (and modify your object)
Declaration
public event ConstructAction.MultipleChoiceInput.SetChoiceDelegate SetChoiceEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.MultipleChoiceInput.SetChoiceDelegate |