The Delphi Bug List

Entry No.
469
VCL - Win32 - ComCtrls - TDateTimePicker
Can't get the TDateTimePicker.OnUserInput event to fire.
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
N/AN/AExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsN/A
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

  1. File | new application
  2. drop a TDateTimePicker control on the form
  3. Set the control's "ParseInput" property to true. Other properties stay at the default values (DateFormat = dfShort, dateMode=dmComboBox)
  4. Put an event handler on the control's "onUserInput" event - any code, so long as you can put a breakpoint on it.
  5. 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.
User-contributed comments
hanjy
20 Aug 2001  08:31 AM GMT
tdatetimepicker font.color can not changer
Latest update of this entry: 2002-04-03

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.