The DncButton component can also be set from the standard Visual Studio property window, but a dedicated setting screen is provided.
For showing the setting screen, please see Set the component properties.
From this setting screen, you can set general buttons such as button appearance and operation type.
Select the button style.
Item |
Description |
Standard |
This is a standard button. |
LedLeft |
It is a button with an LED indicating the ON/OFF status on the left. |
LedRight |
It is a button with an LED indicating the ON/OFF status on the right. |
LedTop |
It is a button with an LED indicating the ON/OFF status on the top. |
LedBottom |
It is a button with an LED indicating the ON/OFF status on the bottom. |
②Type
Select the button action type.
For details on the action type, please refer to Button action type.
③Value
Set the default value for the button.
④ReverseLogic
Reverses the ON / OFF logic. When this setting is valid, the value turns ON when the value is 0, and turns OFF when the value is 1 or more.
⑤PressTime
Specify the time to generate the long press operation in msec.
⑥HoldTime
Indicates how long a value will be retained after it has changed.
For details on the operation, please refer to Value holding operation.
⑦TextOn / ⑧Text Color
Set the text and text color to be displayed when the button is turned ON.
⑨TextOff / ⑩Text Color
Set the text and text color to be displayed when the button is turned OFF.
⑪Font
Set the font of the text.
⑫TextAlign
Select the position to display the text from the following.
・TopLeft
・TopCenter
・TopRight
・TopDistributed
・MiddleLeft
・MiddleCenter
・MiddleRight
・MiddleDistributed
・BottomLeft
・BottomCenter
・BottomRight
・BottomDistributed
⑬TextIndent
Adds indentation to the text. The operation differs depending on TextAlign.
Item |
Description |
In the case of BottomLeft, MiddleLeft, TopLeft |
Fill the space on the left side of the text with the specified number of characters. |
In the case of BottomCenter, MiddleCenter, TopCenter |
The indent is disabled. |
In the case of BottomRight, MiddleRight, TopRight |
Fill the space on the right side of the text with the specified number of characters. |
In the case of TopDistributed, MiddleDistributed, BottomDistributed |
Fill the space on both left side and right side of the text with the specified number of characters. |
⑭LED ON color / ⑮LED OFF color
Set the LED color.
⑯Preview
Display a preview of the settings.
⑰Export button
Displays a dialog to save the setting information being edited into the ini file format (xxx.ini).
⑱Import button
Displays a dialog to specify the ini file format (xxx.ini) to be read.
⑲OK button
Saves the settings and closes the settings screen.
⑳Cancel button
Closes the settings screen without saving the settings.