The button control is used to send commands to a connected device.
Commands are sent when an event, such as the user clicking the button, occurs. Commands are text strings and may include values from other controls such as text boxes or numeric controls.
The label displayed on the button is set using the
|Name||Read only||string||–||The name of the control|
|OnClickSend||Design-only||string||–||The command to send to your Arduino sketch when the button control is clicked.|
|OnDoubleClickSend||Design-only||string||–||The command to send to your Arduino sketch when the button is quickly clicked twice.|
|OnMouseDownSend||Design-only||string||–||The command to send to your Arduino sketch when the mouse button is pressed on the control.|
|OnMouseUpSend||Design-only||string||–||The command to send to your Arduino sketch when the mouse button is released on the control.|
|Text||Read/write||string||SetText||The string displayed on the button|
|TextLength||Read only||int||–||Gets the length of text in the control.|
|ConfirmBeforeSending||Design only||bool||—||When true, the |
|ConfirmationPrompt||Design only||string||—||A custom message displayed to the user when the button is clicked and
This control also supports all the common control properties. It also supports the following methods, which can be used when creating serial commands.
|FixedLengthText(int Length)||string||Returns the first
|FixedLengthText(int Length, string Alignment)||string||Returns the first
|FixedLengthText(int Length, string Alignment, char Padding)||string||Returns the first