SftDate/DLL includes sample code for C and C++/MFC.
The samples listed in the following table can be found in the folder "\Program Files (x86)\Softelvdm\SftDate DLL 2.0\Samples". Each sample is installed in its own subdirectory, with a Visual Studio solution and project. These samples are also referenced throughout the documentation.
| C Sample | Description |
|---|---|
| DemoSample | Ten date fields of every kind and a month calendar, with options for the culture and calendar system, dark mode, high contrast, buttons, border, dropdown alignment, months, week numbers, first day of the week, views, Today and Clear buttons, holidays as special dates, weekends colored through NM_SFTDATE_DAYFORMATTING, disabled weekends, range selection, limits, drop on focus, automatic advance, a color scheme and themes. |
| EventViewer | An appointment field that refuses weekends (NM_SFTDATE_VALUEVALIDATING), a free-form due date that accepts "+n" and "-n" days (NM_SFTDATE_TEXTPARSING) and a month calendar, with every notification logged in a list view. |
| C++/MFC Sample | Description |
|---|---|
| DemoSample | The DemoSample using CSftDate and CSftCalendar through DDX_Control, with notifications handled through ON_NOTIFY and ON_NOTIFY_RANGE. |
| EventViewer | The EventViewer using CSftDate and CSftCalendar, with all notifications handled in an OnNotify override. |
The Demo application starts the C samples from its Samples tab (see Demo Application).