CWButton

Measurement Studio User Interface

CWButton

CWButton is the top-level object for the Button control.

Properties

BackColorSpecifies the background color of the button.
BackgroundImageSpecifies the image to use for the background of the button.
CaptionSpecifies the text that appears in the button.
CaptionColorSpecifies the color of the caption for the button.
CWBindingsReturns a collection of CWBinding objects.
EnabledSpecifies if the control responds to user input.
FontSpecifies the font for the caption and the two text fields in the button.
ImmediateUpdatesSpecifies if the control draws new data as soon as it is available, or if the form refreshes the control when it draws other controls.
KeyboardModeSpecifies how the control handles keyboard input from the user.
ModeSpecifies how the button responds to user input.
OffColorSpecifies the color of the button in the Off state.
OffImageSpecifies the picture for the button in the Off state.
OffTextSpecifies the text for the button in the Off state.
OffTextColorSpecifies the color of the text for the button in the Off state.
OnColorSpecifies the color of the button in the On state.
OnImageSpecifies the picture for the button in the On state.
OnTextSpecifies the text for the button in the On state.
OnTextColorSpecifies the color of the text for the button in the On state.
ReadyStateReturns the ready state.
ShowFocusModeSpecifies how the control indicates it has the focus.
ValueSpecifies the current value of the button.
WindowlessSpecifies if the control has a window.

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.
OffImagesProvides access to the CWImage objects in the CWButton control in the Off state.
OnImagesProvides access to the CWImage objects in the CWButton control in the On state.
RefreshRedraws the CWButton control.
SetBuiltinStyleSets many properties of the control to represent the new style specified.

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.
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.
ValueChangedGenerates when the value of the button changes.