HeaderPane
Main
Hide
Share Link
Print

Accessibility (Screen Readers)

SftDate/DLL 2.0 ships with built-in Windows UI Automation (UIA) support. Users who rely on Narrator, NVDA, JAWS or any other UIA-compatible assistive technology can read and operate both controls, including the dropdown, without the hosting application doing any work. No opt-in, no code change, no separate build.

Names

A control is named by the text of the static control (label) which precedes it in the dialog, as for a standard Windows edit control or combo box; an ampersand used to define an accelerator key is removed. Place a static control with a descriptive text, such as "&Start date:", immediately before the control in the dialog (in tab order), as is customary for an accelerator key. The text box of a field with free-form editing takes the same name.

Fields

ElementExposed as
FieldA combo box, described as a "date picker" or, for a field showing only a time, a "time picker". Its value is the formatted value; it can be set if the field is enabled. It expands and collapses the dropdown, and with a check box it can also be toggled.
Parts of the valueEach part (day, month, year, hours, ...) is a spinner named after the part, with its value and its range; parts shown as words, such as month names and AM/PM, report their text. The parts of the last date of a range are named "End day", "End month" and so on. A part takes the UIA focus when the user moves between the parts with the keyboard, and its changes are announced as they are typed.
Check boxA check box named "Use a date".
Clear buttonA button named by the text defined by SftDate_SetCalendarClearText.
Dropdown calendarThe calendar described below, as part of the field, while the dropdown is open.
Time listA list named "Times"; the selected time is announced as the user moves in the list.
ClockThe hours, minutes and seconds are spinners, AM and PM are radio buttons, and the OK button of a dropdown with a calendar and a time selection is a button.

Calendars

ElementExposed as
CalendarA calendar with the Grid and Table patterns of the month holding the focused date, the selected date as its value, and the Selection pattern.
MonthsEach month is a table named by its title, with the names of the days of the week as column headers and the week numbers ("Week 48") as row headers.
DaysEach day is a data item named by its long date and the tooltip of a special date ("Thursday, November 26, 2026, Thanksgiving"), with its row and column, its selection state, whether it can be selected, and "Today" as status for today's date.
Months, years and decadesIn the year, decade and century views, each period shown is a list and its months, years or decades are list items.
ButtonsThe title, the previous and next buttons and the Today and Clear buttons are buttons. The previous and next buttons are named "Previous month" and "Next month" ("Previous" and "Next" in the larger views), the Today and Clear buttons by their texts, and a title by its text, with the help text "Shows a larger period".

Screen readers can also change the value, select dates and times, open and close the dropdown and click the buttons. These actions work like the equivalent mouse and keyboard actions, so the controls' notifications, such as NM_SFTDATE_VALUECHANGED and NM_SFTDATE_DROPDOWNCLOSED, are sent as usual. Changes of the value, the selection, the focused part and the months shown are reported to screen readers automatically. The providers are created the first time a UI Automation client asks for them, so there is no overhead for applications whose users never run assistive technology.

Announcements

SftDate_Announce pushes short status messages ("Booking saved", "No rooms available on this date") to screen readers, as a UI Automation notification of the kind SFTDATE_ANNOUNCE_INFO, SFTDATE_ANNOUNCE_SUCCESS, SFTDATE_ANNOUNCE_WARNING or SFTDATE_ANNOUNCE_ERROR. An assertive announcement interrupts what the screen reader is saying; a polite one waits. Use it for momentary status updates that are not otherwise visible in the control.

SftDate_Announce(hwndField, TEXT("No rooms available on this date"), SFTDATE_ANNOUNCE_WARNING, FALSE);

Dark mode (the Windows "Choose your mode" setting) and Windows High Contrast (an accessibility setting) are independent. The controls follow them once SftDate_SetDarkMode is called with SFTDATE_DARKMODE_AUTO and SftDate_SetHighContrastMode with SFTDATE_HIGHCONTRAST_AUTO (see Dark Mode and High Contrast).


Last Updated 11/26/2026 - (email)
© 2026 Softel vdm, Inc.