The DncTextBox 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 make the overall settings for the text box.
Please refer to each setting tab page for detailed settings.
①DataType
Select the data type to be entered in the text box.
Item |
Description |
String value |
You can enter a character string. |
Numeric (integer) |
You can only enter numbers from 0 to 9 and - (minus). |
Numeric (float) |
You can enter only half-width numbers from 0 to 9 and - (minus), . (dots). |
Numeric (hexadecimal) |
You can only enter numbers from 0 to 9 and half-width a to f and A to F. However, the leading "0x" and trailing "H" do not cause an error and accept values. |
②ImeMode
You can set the IME input mode when the focus moves to the text box.
Value |
Enumeration member |
Description |
0 |
NoControl |
No control |
1 |
On |
IME is on. This value indicates that the IME is on and that you can enter characters that are unique to Chinese or Japanese. This setting is valid only for IMEs in Japanese, Simplified Chinese, and Traditional Chinese. |
2 |
Off |
IME is off. This mode indicates that the IME is off. In other words, the behavior of the object is similar to the English input mode. This setting is valid only for IMEs in Japanese, Simplified Chinese, and Traditional Chinese. |
3 |
Disable |
IME is disabled. With this setting, the user cannot enable his IME using the keyboard and the floating window of the IME will be hidden. |
4 |
Hiragana |
Hiragana DBC. This setting is valid only for Japanese IME. |
5 |
Katakana |
Katakana DBC. This setting is valid only for Japanese IME. |
6 |
KatakanaHalf |
Katakana SBC. This setting is valid only for Japanese IME. |
7 |
AlphaFull |
2-byte alphanumerical. This setting is valid only for Korean and Japanese IMEs. |
8 |
Alpha |
1-byte alphanumerical (SBC). This setting is valid only for Korean and Japanese IMEs. |
9 |
HangulFull |
Hangul DBC. This setting is valid only for Korean IME. |
10 |
Hangul |
Hangul SBC. This setting is valid only for Korean IME. |
11 |
Close |
The IME will be closed. This setting is valid only for Chinese IME. |
12 |
OnHalf |
HalfShape IME. This setting is valid only for Chinese IME. |
-1 |
Inherit |
Inherits the IME mode of the parent control. |
③Text
You can enter the text to be displayed in the text box.
④Text Color
You can select the text color of the text from the color dialog.
⑤Font
Set the font of the text.
⑥TextAlign
Set the text alignment.
Item |
Description |
Left |
Align to the left. |
Center |
Align to the center. |
Right |
Align to the right. |
⑦TextIndent
Set the text indentation.
This is valid only when Left or Right is selected for TextAlign.
⑧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.