CWNumEdit

Measurement Studio User Interface

CWNumEdit

CWNumEdit is the top-level object for the Numeric Edit control.

Properties

AccelIncDetermines the amount the value increments or decrements according to how long the user holds down the increment or decrement button.
AccelTimeSpecifies the number of seconds the increment or decrement button must be held down before the value is changed by the AccelInc value instead of the IncDecValue.
AlignmentSpecifies how the text within the CWNumEdit control is aligned.
AppearanceSpecifies how the edit box portion of the CWNumEdit control is drawn.
BackColorSpecifies the frame color and the background color behind the increment and decrement buttons for the CWNumEdit control.
BackColorTextSpecifies the background color of the edit box portion of the CWNumEdit control.
BorderStyleSpecifies the border around the edit box portion of the CWNumEdit control.
ButtonColorSpecifies the color of the increment and decrement buttons.
ButtonStyleSpecifies if the increment and decrement buttons have a three-dimensional style.
CWBindingsReturns a collection of CWBinding objects.
DiscreteSpecifies if the CWNumEdit control is in discrete or continuous mode.
DiscreteBaseSpecifies the initial value to use in a discrete CWNumEdit control.
DiscreteIntervalSpecifies the interval to use in a discrete CWNumEdit control.
EnabledSpecifies if the user is able to interact with the control.
FontSpecifies the font the CWNumEdit control uses.
ForeColorTextSpecifies the color of the text in the CWNumEdit control.
FormatStringSpecifies the string that formats the value in the numeric edit control.
IncDecButtonPositionSpecifies the location of the increment and decrement buttons of the CWNumEdit control.
IncDecButtonVisibleSpecifies if the increment and decrement buttons are visible.
IncDecValueSpecifies the amount the value increments or decrements when the user clicks the increment or decrement button.
MaximumSpecifies the maximum value of the CWNumEdit control for range checking.
MinimumSpecifies the minimum value of the CWNumEdit control for range checking.
ModeSpecifies how the CWNumEdit control responds to user input.
RangeCheckingSpecifies if the CWNumEdit control enforces the Minimum and Maximum property values.
ReadyStateReturns the ready state.
TextSpecifies the text that is displayed in the edit box.
ValueSpecifies the current value of the numeric edit control.

Methods

AboutBoxDisplays the About Box for the control.
ControlImageReturns an image of the entire control.
ExportStyleExports the style of the Measurement Studio control to a file.
ImportStyleImports a previously exported style.
SetMinMaxSets the Minimum and Maximum properties.

Events

ClickGenerates when you click the mouse on the control.
CWBindingDataUpdatedGenerated when the binding data is updated.
CWBindingStatusUpdatedGenerated when the status of the binding connection changes.
DblClickGenerates when you double-click the mouse on the control.
ErrorGenerated when the user enters an illegal value in the CWNumEdit control.
IncDecButtonClickedGenerated when the user clicks the increment or decrement button on the numeric edit control.
KeyDown, KeyUpKeyUp generates when you release a key while the control has the input focus.

KeyDown generates when you press a key while the control has the input focus.
KeyPressGenerated when the control has focus and you press a key.
MouseDown, MouseMove, MouseUpMouseDown generates when you click the mouse on the control.

MouseMove generates when you move the mouse over the control.

MouseUp generates when you release the mouse on the control.
ReadyStateChangeGenerated when the ready state changes.
ValueChangedGenerated when the value of the CWNumEdit control has changed from the user interface or the program.
ValueChangingGenerated when the value of the CWNumEdit control is about to change (the value of the control has been entered but not set).