I have DateTimePicker and Menu controls in my form.
Sometimes it happens, that user click to Menu, not having finish entering Time, e.g.
previous value was 00:00:00, user entered 1:00:00 and clicked Menu.
In that case DateTimePicker.DateTime property is not updated to a new value,
and MenuItemClick do processing of an old value (see screenshot).
This happens only with Menu, if user click to another control, DateTime value is applied.
I would expect there should be a standard procedure that can be called to push update of the control's value or even all values of all controls of a form, but I didn't find one.
I tried calling DateTimePicker.Update from MenuItemClick, but it didn't help.
What is a workaround for this situation?
Windows 7, Lazarus 1.8.0, FPC 3.0.4