2016-11-29 09:53:31 +00:00
|
|
|
unit JvValidatorReg;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Classes, LResources, SysUtils, ComponentEditors, PropEdits, ImageListEditor,
|
|
|
|
GraphPropEdits;
|
|
|
|
|
|
|
|
procedure Register;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2016-12-07 12:23:59 +00:00
|
|
|
{$R ..\..\resource\JvValidatorsReg.res}
|
2016-11-29 09:53:31 +00:00
|
|
|
|
2016-12-07 12:23:59 +00:00
|
|
|
uses
|
|
|
|
JvDsgnConsts, JvValidators, JvErrorIndicator, JvValidatorsEditorForm;
|
2016-11-29 09:53:31 +00:00
|
|
|
|
|
|
|
procedure Register;
|
|
|
|
begin
|
2018-03-11 14:57:44 +00:00
|
|
|
RegisterComponents(RsPaletteJvcl, [
|
|
|
|
TJvValidators, TJvValidationSummary, TJvErrorIndicator
|
|
|
|
]);
|
|
|
|
// RegisterComponents(RsPaletteValidators, [TJvValidators, TJvValidationSummary, TJvErrorIndicator]);
|
2016-12-07 12:23:59 +00:00
|
|
|
|
2016-11-29 09:53:31 +00:00
|
|
|
RegisterNoIcon([TJvRequiredFieldValidator, TJvCompareValidator,
|
|
|
|
TJvRangeValidator, TJvRegularExpressionValidator, TJvCustomValidator, TJvControlsCompareValidator]);
|
|
|
|
|
|
|
|
RegisterComponentEditor(TJvValidators, TJvValidatorEditor);
|
|
|
|
RegisterPropertyEditor(TypeInfo(Integer), TJvErrorIndicator, 'ImageIndex', TImageIndexPropertyEditor);
|
|
|
|
// RegisterPropertyEditor(TypeInfo(string), TJvCustomFormatEdit, 'Characters', TJvCharStringProperty);
|
|
|
|
RegisterPropertyEditor(TypeInfo(string), TJvBaseValidator, 'PropertyToValidate', TJvPropertyValidateProperty);
|
|
|
|
RegisterPropertyEditor(TypeInfo(string), TJvBaseValidator, 'CompareToProperty', TJvPropertyToCompareProperty); end;
|
|
|
|
|
|
|
|
|
|
|
|
end.
|