Operating Numeric Controls
When you set a numeric control to any mode other than indicator mode, you can change its value from the keyboard or with the mouse.
![]() |
Note When you enter a number in scientific notation into controls of type int64 or unsigned int64, LabWindows/CVI converts the number to a double and then to a 64-bit integer. This conversion may cause a loss of precision after 15 decimal digits. |
You can operate a numeric control from the keyboard in the following ways:
- Press the left or right arrow key to move the cursor within the control.
- Press the up or down arrow key to increase or decrease the value displayed in the control.
- Press <Home> to move the cursor to the beginning of the text.
- Press <End> to move the cursor to the end of the text.
- Press <Shift-Home> to highlight all text to the left of the cursor.
- Press <Shift-End> to highlight all text to the right of the cursor.
You can operate a numeric control with the mouse by clicking the up or down arrow buttons to change the value of the control.
If the control mode of a numeric control is hot or validate, a commit event is generated when you press the up or down arrow keys, or when you enter a new value and then press the <Enter> or <Tab> key, or click another object with the mouse.