View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004058 | JEDI VCL | 00 JVCL Components | public | 2007-02-07 07:18 | 2007-06-19 07:15 |
Reporter | willhonor | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.30 | ||||
Target Version | Fixed in Version | 3.34 | |||
Summary | 0004058: TJvDBDateTimePicker Does not obey DropDownDate when current date = nulldate | ||||
Description | When the TJvDBDateTimePicker has the current date = nulldate and the dropdown box is shown it will always show the epox date. The text below is taken from a newsgroup post I made some time ago. When the control has focus the nulltext is copied to FKeepNulltext and FNulltext is set to ''. When the control is dropped down it has to decide whether or not the value is null. For some reason the first part of that check is to see whether or not FNulltext has a value. Therefore CheckNullValue will always return False and the dropdowndate will be incorrect. The following fix appears to work for me. Regards, Will. JvDateTimePicker.pas Change this : function TJvDateTimePicker.CheckNullValue: Boolean; begin Result := CheckNullValue(FNullText, Format, Kind, DateTime, NullDate); end; To this : function TJvDateTimePicker.CheckNullValue: Boolean; var tmpNullText : String ; begin if self.Focused then tmpNullText := FKeepNullText else tmpNullText := FNullText ; Result := CheckNullValue(tmpNullText, Format, Kind, DateTime, NullDate); end; | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2007-02-07 07:18 | willhonor | New Issue | |
2007-06-19 07:15 | obones | Status | new => resolved |
2007-06-19 07:15 | obones | Fixed in Version | => Daily / SVN |
2007-06-19 07:15 | obones | Resolution | open => fixed |
2007-06-19 07:15 | obones | Assigned To | => obones |
2007-06-19 07:15 | obones | Note Added: 0013440 | |
2013-12-13 11:07 | obones | Relationship added | related to 0006220 |