Configuring a User Input Animation for a Time Value
- Last UpdatedJul 13, 2023
- 3 minute read
You can configure an element with a user input animation for a time value.
To configure an element with a user input animation for a time value
-
Select the element.
-
On the Special menu, click Edit Animations. The Edit Animations dialog box appears.
-
Click the Add icon and select User Input. The user input animation is added to the Animation list and the User Input state selection panel appears.
-
Click the Time button. The Time Value User Input configuration panel appears.
-
In the Time box, type an equipment.item reference or browse for one by using the browse button.
-
In the Message to User box, type a value, equipment.item reference or expression. This is the text that appears as prompt on the time value input dialog box at run time.
-
Verfiy that the input mode of the Message to User box is set correctly. Click the Input Mode icon to set a static value or an equipment.item reference or expression.
-
Specify that the Input dialog box appears by pressing a key or key combination. In the Shortcut area. Select a shortcut key in the Key list. Select CTRL and/or SHIFT to combine the shortcut key with the Ctrl key and/or Shift key.
-
If you don’t want the time value display element to show the time input result on the canvas, select Input Only.
-
To use the current date and time as default, select Use Current Date/Time as Default.
-
Select:
-
Use Input Dialog to use the Time User Input dialog box at run time to type date and time values in individual boxes.
-
Use Calendar to use the Time User Input dialog box at run time to type a date with the calendar control.
-
-
If you select Use Input Dialog to type the time value, you can select:
-
Date and Time to type date and time.
-
Date to only type a date.
-
Time to only type a time.
Select Show Seconds if you also want to input seconds.
-
-
If you want to format your text after input, type a valid text format in the Text Format box. Use the following letters to set the time format:
h
The one or two-digit hour in 12-hour format.
hh
The two-digit hour in 12-hour format. Single digit values are preceded by a zero.
H
The one or two-digit hour in 24-hour format.
HH
The two-digit hour in 24-hour format. Single digit values are preceded by a zero.
t
The one-letter AM/PM abbreviation ("AM" appears as "A").
tt
The two-letter AM/PM abbreviation ("AM" appears as "AM").
m
The one or two-digit minute.
mm
The two-digit minute. Single digit values are preceded by a zero.
s
The one or two-digit seconds.
ss
The two-digit seconds. Single digit values are preceded by a zero.
d
The one or two-digit day.
dd
The two-digit day. Single digit day values are preceded by a zero.
ddd
The three-character day-of-week abbreviation.
dddd
The full day-of-week name.
M
The one or two-digit month number.
MM
The two-digit month number. Single digit values are preceded by a zero.
MMM
The three-character month abbreviation.
MMMM
The full month name.
y
The one-digit year (2001 appears as "1").
yy
The last two digits of the year (2001 appears as "01").
yyyy
The full year (2001 appears as "2001").
Note: You can use any other characters, except "g" in the property. These characters then appear at design time and run time in the control.
-
Click OK.