2016-12-07 12:23:59 +00:00
|
|
|
unit JvDBReg;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
2018-03-15 21:27:45 +00:00
|
|
|
SysUtils, PropEdits, DBPropEdits;
|
2016-12-07 12:23:59 +00:00
|
|
|
|
|
|
|
procedure Register;
|
|
|
|
|
2018-03-15 23:52:25 +00:00
|
|
|
|
2016-12-07 12:23:59 +00:00
|
|
|
implementation
|
|
|
|
|
2018-03-11 14:57:44 +00:00
|
|
|
{$R ../../resource/jvdbreg.res}
|
|
|
|
|
2016-12-07 12:23:59 +00:00
|
|
|
uses
|
2018-03-16 18:51:45 +00:00
|
|
|
Classes, JvDsgnConsts, //JvDBSearchCombobox,
|
2019-04-22 09:50:00 +00:00
|
|
|
JvDBSearchEdit, JvDBTreeView, JvDBControls, JvDBHTLabel, JvDBLookup;
|
2016-12-07 12:23:59 +00:00
|
|
|
|
|
|
|
procedure Register;
|
2018-03-15 21:27:45 +00:00
|
|
|
const
|
|
|
|
// cDataField = 'DataField';
|
|
|
|
// cKeyField = 'KeyField';
|
|
|
|
// cListField = 'ListField';
|
|
|
|
// cDisplayField = 'DisplayField';
|
|
|
|
// cListKeyField = 'ListKeyField';
|
|
|
|
cMasterField = 'MasterField';
|
|
|
|
cDetailField = 'DetailField';
|
|
|
|
cIconField = 'IconField';
|
|
|
|
cItemField = 'ItemField';
|
|
|
|
// cLookupField = 'LookupField';
|
|
|
|
// cSectionField = 'SectionField';
|
|
|
|
// cValueField = 'ValueField';
|
|
|
|
// cEditControls = 'EditControls';
|
|
|
|
// cSortedField = 'SortedField';
|
|
|
|
// cSortMarker = 'SortMarker';
|
|
|
|
|
2016-12-07 12:23:59 +00:00
|
|
|
begin
|
2018-03-15 21:27:45 +00:00
|
|
|
RegisterComponents(RsPaletteJvclDB, [ // was: TsPaletteDBVisual
|
2018-07-21 14:34:52 +00:00
|
|
|
TJvDBCalcEdit,
|
2018-03-15 21:27:45 +00:00
|
|
|
TJvDBSearchEdit,
|
2018-03-15 23:52:25 +00:00
|
|
|
// TJvDBSearchCombobox,
|
2018-03-16 18:51:45 +00:00
|
|
|
TJvDBTreeView,
|
2019-04-22 09:50:00 +00:00
|
|
|
TJvDBHTLabel,
|
|
|
|
TJvDBLookupList, TJvDBLookupCombo
|
2018-03-11 14:57:44 +00:00
|
|
|
]);
|
2018-03-16 18:51:45 +00:00
|
|
|
|
2018-03-15 21:27:45 +00:00
|
|
|
RegisterPropertyEditor(TypeInfo(string), TJvDBTreeView, cItemField, TFieldProperty); //TJvDataFieldProperty);
|
|
|
|
RegisterPropertyEditor(TypeInfo(string), TJvDBTreeView, cMasterField, TFieldProperty); //TJvDataFieldProperty);
|
|
|
|
RegisterPropertyEditor(TypeInfo(string), TJvDBTreeView, cDetailField, TFieldProperty); //TJvDataFieldProperty);
|
|
|
|
RegisterPropertyEditor(TypeInfo(string), TJvDBTreeView, cIconField, TFieldProperty); //TJvDataFieldProperty);
|
2016-12-07 12:23:59 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
|
|
|