Hello,
In my application, I defined an editor for a cell in AdvStringGrid
as follows:
procedure TForm1.NotesDBGetEditorType(Sender: TObject; ACol, ARow: Integer;
var AEditor: TEditorType);
begin
if FDnotes.FindField('DateToLaunch').Index = ACol then
begin
AEditor := edDateTimeEdit;
NotesDB.SpinEdit.ShowSeconds := False;
end;
end;
I got this:
This is intended to edit a DateTime
value. The calendar icon that appears on the right side of the editor allows me to select the date, which works perfectly.
However, on the left side of the editor (the time picker), I would like to hide the seconds and also hide the date. I only need to edit the time (hours and minutes).
What should I do to achieve this?
Any other suggestion is welcome as long is it can help me editing both Date and time efficiently