summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-08-25 06:58:50 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-08-25 06:58:50 +0000
commit65c4f0c722d95be2e4babbe2cd4cbc43d33da42a (patch)
treee72ea680a7829a014d1d42144cb8e15893988b97 /extras
parent6cbfa3bf5499d5e2d55489d04380d36c177a6f1b (diff)
downloadfpGUI-65c4f0c722d95be2e4babbe2cd4cbc43d33da42a.tar.xz
no comments
Diffstat (limited to 'extras')
-rw-r--r--extras/tiopf/demos/Common/Model.pas11
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;