-
Notifications
You must be signed in to change notification settings - Fork 5
/
TSGReg.pas
50 lines (39 loc) · 1.89 KB
/
TSGReg.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
{*******************************************************}
{ }
{ ObjectSight Visual Components }
{ TopGrid components and editors registration unit }
{ }
{ Copyright (c) 1999-2002, ObjectSight }
{ }
{*******************************************************}
unit TSGReg;
{$INCLUDE TSCmpVer}
interface
uses
TSGrid, TSDBGrid, TSMask, TSImageList, TSDateTime,
TSImagelistEditor, {TSDateTimeEditor,}
{$IFNDEF TSVER_V4PRO} tsHTMLGridProducer, {$ENDIF}
osColorComboBox, osGridEditor
{$IFDEF TSVER_V6} , DesignEditors {$ENDIF};
procedure Register;
implementation
uses
Classes, {$IFDEF TSVER_V6} DesignIntf, {$ELSE} DsgnIntf, {$ENDIF} Controls;
procedure Register;
begin
RegisterComponents('TopGrid', [TtsGrid]);
RegisterComponents('TopGrid', [TtsDBGrid]);
RegisterComponents('TopGrid', [TtsMaskDefs]);
RegisterComponents('TopGrid', [TtsImageList]);
RegisterComponents('TopGrid', [TtsDateTimeDef]);
{$IFNDEF TSVER_V4PRO} RegisterComponents('TopGrid', [TtsHTMLGridProducer]); {$ENDIF}
RegisterComponents('TopGrid', [TosColorComboBox]);
RegisterPropertyEditor(TypeInfo(string), TtsCol, 'FieldName', TStringProperty);
//rh RegisterPropertyEditor(TypeInfo(TDate), TtsDateTimeDefProps, 'MinDate', TtsDateTimeDateProperty);
//rh RegisterPropertyEditor(TypeInfo(TDate), TtsDateTimeDefProps, 'MaxDate', TtsDateTimeDateProperty);
RegisterComponentEditor(TtsBaseGrid, TosGridEditor);
RegisterPropertyEditor(TypeInfo(TtsImageCollection), TtsImageList, '', TtsImageCollectionEditor);
RegisterComponentEditor(TtsImageList, TtsImageListEditor);
//RegisterComponentEditor(TtsDateTimeDef, TtsDateTimeEditor);
end;
end.