unit AAPGObju;
{ Generated by MakeComp 1.03 from AAPGTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, SysUtils, Graphics, UlanType, ULRecTyp, ULObju, 
  AAPLType,
  AAPGType;

type
  TAAPGObj = class(TULObj)
  protected
    function GetPrgName: TAAPrgName;
    procedure SetPrgName(APrgName: TAAPrgName);
    function GetPrgDesc: TAAPrgDesc;
    procedure SetPrgDesc(APrgDesc: TAAPrgDesc);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property PrgName: TAAPrgName
      read GetPrgName write SetPrgName;
    property PrgDesc: TAAPrgDesc
      read GetPrgDesc write SetPrgDesc;
  end;

const
  AAPGChildRecIDs: array[0..0] of TULRecID = (
    AAPLID
  );
  AAPGFldDescs: array[0..1] of TULFldDesc = (
    (
     Caption: 'Program Name';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 4097;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0;
     FieldColorCount : 0;
     FieldColors : nil;
     Filter: '';
     DefDir: '';
     StripPrefix: '';
     EditMask: '';
     MaxID: 0;
     FieldName: 'PrgName';
     KeyFieldName: '';
     ListFieldName: '';
     Typ: '';
     VarSize: false;
     PasType: 'TAAPrgName';
    ),
    (
     Caption: 'Program Desc.';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 4097;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0;
     FieldColorCount : 0;
     FieldColors : nil;
     Filter: '';
     DefDir: '';
     StripPrefix: '';
     EditMask: '';
     MaxID: 0;
     FieldName: 'PrgDesc';
     KeyFieldName: '';
     ListFieldName: '';
     Typ: '';
     VarSize: false;
     PasType: 'TAAPrgDesc';
    )
  );

  AAPGRecDesc: TULRecDesc = (
    Caption: 'AA Program';
    ChildRecIDsStr: 'AAPLID';
    ChildRecIDs: @AAPGChildRecIDs;
    ChildRecIDCount: 1;
    FldCount: 2;
    Flds: @AAPGFldDescs;
    Flags: rfChildAllowed OR rfRootChild OR rfChildSorted OR rfHasRecName OR rfAskForSave OR rfEnabled OR rfVisible OR rfSortedByNumber;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: '';
    MenuFieldList: '';
    BrowseChildRecIDs: '';
    NameProp: '';
    MainProp: '';
    DefDir: '';
    OpenFilter: '';
    SaveFilter: '';
    Table: '';
    Indexes: ''
   );

implementation

{TAAPGObj}
function TAAPGObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TAAPGRec);
end;

constructor TAAPGObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), AAPGID);
end;

function TAAPGObj.GetULRecDesc: PULRecDesc;
begin
  Result := @AAPGRecDesc;
end;

procedure TAAPGObj.SetPrgName(APrgName: TAAPrgName);
begin
  if PAAPGRec(Rec)^.PrgName <> APrgName then begin
    PAAPGRec(Rec)^.PrgName := APrgName;
    if AAPGFldDescs[0].VarSize then 
      ClearFieldsLen;
    DoChange;
  end;
end;

function TAAPGObj.GetPrgName: TAAPrgName;
begin
  GetPrgName := PAAPGRec(Rec)^.PrgName;
end;

procedure TAAPGObj.SetPrgDesc(APrgDesc: TAAPrgDesc);
begin
  if PAAPGRec(Rec)^.PrgDesc <> APrgDesc then begin
    PAAPGRec(Rec)^.PrgDesc := APrgDesc;
    if AAPGFldDescs[1].VarSize then 
      ClearFieldsLen;
    DoChange;
  end;
end;

function TAAPGObj.GetPrgDesc: TAAPrgDesc;
begin
  GetPrgDesc := PAAPGRec(Rec)^.PrgDesc;
end;

{/TAAPGObj}

end.
