HeaderPane
Main
Hide
Share Link
Print

Time List and Clock

The dropdown of a field showing a time offers the time in one of two styles, defined by the SftDate.TimeDropDownStyle property.

Time List (TimeDropDownStyleEnum.List, default)Clock (TimeDropDownStyleEnum.Clock)

Time List

The time list offers the times of the day at the interval defined by the SftDate.TimeInterval property (30 minutes by default). The field's time is selected when it is one of the listed times. A click, the Enter key or the Space key chooses a time. The scroll bar and the mouse wheel scroll the list, and the Up and Down keys, Page Up, Page Down, Home and End move in it.

Clock

The clock face is used in steps: the user picks the hour first, then the minutes, and then the seconds if the format shows seconds. In a 24-hour format, the hours 13 to 23 and 0 are on an inner ring. The numbers at the top of the dropdown show the parts of the time and switch between the steps, and the AM and PM buttons switch between the morning and the afternoon in a 12-hour format. The arrow keys change the hour, the minutes or the seconds, the Space key moves to the next step and the Enter key accepts the time.

Limits

Times outside the SftDate.MinDate and SftDate.MaxDate limits of the field cannot be chosen; for a date and time, the limits apply on the first and the last day. With a calendar and a time selection in the dropdown (see The Dropdown), the time selection follows the date selected in the calendar.