home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 January
/
Chip_1999-01_cd.bin
/
zkuste
/
delphi
/
D1
/
GCAL.ZIP
/
DEMO.ZIP
/
UNIT1.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1997-03-15
|
1KB
|
48 lines
unit Unit1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Grids, Calendar, Gcal, Gcal32;
type
TForm1 = class(TForm)
GregCalendar1: TGregCalendar;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
var
d : string ;
begin
d := ExtractFilePath( ParamStr(0) ) ;
GregCalendar1.AddSpecialDay(Date,
d + 'handsh16.bmp', 'Always wash hands to prevent spreading disease') ;
GregCalendar1.AddSpecialDay(Date + 7,
d + 'meeting.ico', 'Monthly staff meeting') ;
GregCalendar1.AddSpecialDay(Date + 14,
d + 'barchart.ico', 'Annual sales figures due') ;
GregCalendar1.AddSpecialDay(Date + 21,
d + 'stopsign.ico', 'Stop... in the name of love!') ;
GregCalendar1.AddSpecialDay(Date + 28,
d + 'skylin16.bmp', 'Out on the town') ;
GregCalendar1.AddSpecialDay(EncodeDate(1996, 12, 5),
d + 'happy.ico', 'This is a special person''s birthday') ;
GregCalendar1.AddSpecialDay(EncodeDate(1996, 12, 27),
d + 'happy.ico', 'This is another special person''s birthday')
end;
end.