|
Description | |
|
Reported by Anthony Steele; checked by Erik Berry
Problem: I cannot get the TDateTimePicker.OnUserInput event to fire. The
documentation says that "If ParseInput is True, the OnUserInput event occurs
whenever the user types into the component's edit box."
To reproduce the bug
- File | new application
- drop a TDateTimePicker control on the form
- Set the control's "ParseInput" property to true. Other properties stay at
the default values (DateFormat = dfShort, dateMode=dmComboBox)
- Put an event handler on the control's "onUserInput" event - any code, so
long as you can put a breakpoint on it.
- Run the project, play with the control and your breakpoint will never be hit
unless you
a) have a 2-digit year set in the control panel.
b) Click the calendar button directly after typing your changes.
The OnUserInput event should "occur when the user types directly into the
TDateTimePicker", not just under very special circumstances. |
|