Changeset 1679 for cprs/trunk/CPRS-Lib/ORDtTm.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Lib/ORDtTm.pas
r829 r1679 99 99 FCaption: TStaticText; 100 100 FBlackColorMode: boolean; 101 FOnDateDialogClosed : TNotifyEvent; 101 102 procedure ButtonClick(Sender: TObject); 102 103 function GetFMDateTime: TFMDateTime; … … 115 116 procedure KeyDown(var Key: Word; Shift: TShiftState); override; 116 117 property DateButton: TORDateButton read FButton; 118 procedure SetEnabled(Value: Boolean); override; //wat v28 when disabling TORDateBox, button still appears active, this addresses that 117 119 public 118 120 constructor Create(AOwner: TComponent); override; … … 130 132 property RequireTime: Boolean read FRequireTime write SetRequireTime; 131 133 property Caption: string read GetCaption write SetCaption; 134 property OnDateDialogClosed: TNotifyEvent read FOnDateDialogClosed write FOnDateDialogClosed; 132 135 end; 133 136 … … 646 649 end; 647 650 DateDialog.Free; 651 if Assigned(OnDateDialogClosed) then OnDateDialogClosed(Self); 648 652 if Visible and Enabled then //Some events may hide the component 649 653 SetFocus; … … 740 744 if Length(Text) > 0 then 741 745 begin 746 { 747 !!!!!! THIS HAS BEEN REMOVED AS IT CAUSED PROBLEMS WITH REMINDER DIALOGS - VHAISPBELLC !!!!!! 748 //We need to make sure that there is a date entered before parse 749 if FRequireTime and ((Pos('@', Text) = 0) or (Length(Piece(Text, '@', 1)) = 0)) then 750 ErrMsg := 'Date Required'; 751 } 742 752 FFMDateTime := ServerParseFMDate(Text); 743 753 if FFMDateTime <= 0 then Errmsg := 'Invalid Date/Time'; … … 777 787 end; 778 788 FCaption.Caption := Value; 789 end; 790 791 procedure TORDateBox.SetEnabled(Value: Boolean); 792 begin 793 FButton.Enabled := Value; 794 inherited; 779 795 end; 780 796
Note:
See TracChangeset
for help on using the changeset viewer.