jvcllaz: Identify alarm as over-due (JvTimeFramework demo).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7136 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
64ce31d116
commit
d403f8aef4
@ -105,6 +105,7 @@
|
||||
<Filename Value="tfalarm.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<ComponentName Value="AlarmForm"/>
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="tfAlarm"/>
|
||||
</Unit7>
|
||||
|
@ -66,12 +66,16 @@ var
|
||||
deltaMins: Integer;
|
||||
begin
|
||||
EventLabel.Caption := AAppt.Description;
|
||||
if AAppt.StartDate < Now() then begin
|
||||
IsDueLabel.Caption := 'is OVERDUE: ';
|
||||
TimeLabel.Caption := FormatDateTime('t', AAppt.StartTime); // 't' = ShortTimeFormat
|
||||
end else
|
||||
if AAppt.StartDate = Date() then begin
|
||||
IsDueLabel.caption := 'is due at ';
|
||||
TimeLabel.Caption := FormatDateTime(FormatSettings.ShortTimeFormat, AAppt.StartTime);
|
||||
TimeLabel.Caption := FormatDateTime('t', AAppt.StartTime);
|
||||
end else begin
|
||||
IsDueLabel.Caption := 'is due on ';
|
||||
TimeLabel.Caption := FormatDateTime('dddddd', AAppt.StartDateTime);
|
||||
TimeLabel.Caption := FormatDateTime('dddddd', AAppt.StartDateTime); // LongDateFormat
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -320,9 +320,9 @@ object ApptEdit: TApptEdit
|
||||
Height = 23
|
||||
Top = 115
|
||||
Width = 37
|
||||
Alignment = taRightJustify
|
||||
BorderSpacing.Left = 8
|
||||
BorderSpacing.Bottom = 8
|
||||
ReadOnly = True
|
||||
TabOrder = 6
|
||||
Text = '0'
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user