-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathODSchedReg.pas
62 lines (51 loc) · 1.44 KB
/
ODSchedReg.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
unit ODSchedReg;
{
My Power Station Technology (Pty) Ltd - was Orbital Decisions
P.O.Box 1080, Milnerton 7435, South Africa
http://www.orbital.co.za/text/prodlist.htm
Copyright (c) 1998-2019
Use at your own risk!
}
interface
uses
DesignIntf, DesignEditors;
procedure Register;
implementation
uses
Classes,{Graphics,Controls,}Vcl.Dialogs, ODSched;
type
TODAboutProperty = class(TStringProperty)
public
procedure Edit; override;
function GetAttributes: TPropertyAttributes; override;
end;
const
ODVersion = '5.0.0';
Restricted = False;
MaxItems = 5;
MaxJobs = 5;
MaxSchedules = 3;
procedure Register;
begin
RegisterComponents('Orbital', [TODJobSchedule, TODScheduleBox]);
RegisterPropertyEditor(TypeInfo(string), TODJobSchedule,
'About', TODAboutProperty);
RegisterPropertyEditor(TypeInfo(string), TODScheduleBox,
'About', TODAboutProperty);
end;
function TODAboutProperty.GetAttributes: TPropertyAttributes;
begin
Result := [paDialog, paReadOnly];
end;
procedure TODAboutProperty.Edit;
begin
MessageDlg('Orbital Decisions Scheduling Components ' + ODVersion +
#13#13 + 'My Power Station Technology (Pty) Ltd'#13 +
'Delphi development, solutions and business components'#13#13 +
'Addr.: P.O.Box 1080, Milnerton, 7435, South Africa'#13 +
'EMail: [email protected]'#13 +
'URL: http://www.orbital.co.za',
mtInformation, [mbOK], 0);
end;
end.