I need to react at TDateTimePicker.OnChangeEvent on date change. Display dialogs like "Unsaved changes will be lost" with buttons OK, Cancel. If the user press Cancel button I want to reset back the original date.
Unfortunatelly I can't change the date from that event. Change is ignored.
More detailed description:
- User change the date in DateTimePicker (by keyboard) or Opens the calendar and pick a date
- OnChange event is fired (calendar maybe still open)
- I display the MessageDialog and if user press "Cancel" I want to restore date. Eg. close the calendar and restore date.