diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-08-25 06:58:50 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-08-25 06:58:50 +0000 |
commit | 65c4f0c722d95be2e4babbe2cd4cbc43d33da42a (patch) | |
tree | e72ea680a7829a014d1d42144cb8e15893988b97 /extras | |
parent | 6cbfa3bf5499d5e2d55489d04380d36c177a6f1b (diff) | |
download | fpGUI-65c4f0c722d95be2e4babbe2cd4cbc43d33da42a.tar.xz |
no comments
Diffstat (limited to 'extras')
-rw-r--r-- | extras/tiopf/demos/Common/Model.pas | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extras/tiopf/demos/Common/Model.pas b/extras/tiopf/demos/Common/Model.pas index 3f2c048c..57be1783 100644 --- a/extras/tiopf/demos/Common/Model.pas +++ b/extras/tiopf/demos/Common/Model.pas @@ -44,6 +44,7 @@ type procedure SetMemento(const AValue: TPersonMemento); protected function GetCaption: string; override; + procedure DoGetFieldBounds(const AFieldName: String; var MinValue, MaxValue: Integer; var HasBounds: Boolean); overload; public constructor Create; override; function IsValid(const pErrors: TtiObjectErrors): Boolean; override; @@ -164,6 +165,16 @@ begin Result := Result + ' (deleted)'; end; +procedure TPerson.DoGetFieldBounds(const AFieldName: String; var MinValue, + MaxValue: Integer; var HasBounds: Boolean); +begin + inherited; // until I can figure this out +{ + HasBounds := True; +} + // How do I check or set the Name property to max 25 character? +end; + constructor TPerson.Create; begin inherited Create; |