| Search Locate Previous Next | Contents |
Description
Edit field which expects and assigns times as numeric scalars, represented as the decimal part of the day, i.e. 12:00 would be 0.5. This is compatible with Excel, and allows you to add times to dates easily.
The field has a simple spin behaviour, which increments the minutes, and kicks over the hours when required. You can set the increment (e.g. to 60) to spin in appropriate units. To turn off normal CPro refresh during spinning, set Tracking=0.
If a single number is entered, it is taken as hours, on a 24-hr clock. The characters N and n are acceptable as Now.
Pressing <Enter> with a partial time redisplays it in its complete form. A further <Enter> confirms, and is passed through to the <OK> button if there is one.
Class Property Table
| Name | Type | Default | Description |
| Hint | String | ||
| Style | ManyOf | ||
| Time | User | Time (decimal day from 00:00) | |
| Increment | Runtime | Increment in minutes (default 1) | |
| Delay | Int | 400 | Initial spin delay (ms) |
| Interval | Int | 50 | Spin repeat interval (ms) |
| Tracking | Bool | 1 | Update data every click |
| Visible | Runtime | Boolean singleton | |
| Active | Runtime | Boolean singleton |