{***************************************************************************}
{ This source code was generated automatically by                           }
{ Pas file import tool for Scripter Studio (Pro)                            }
{                                                                           }
{ Scripter Studio and Pas file import tool for Scripter Studio              }
{ written by TMS Software                                                   }
{            copyright © 1997 - 2010                                        }
{            Email : info@tmssoftware.com                                   }
{            Web : http://www.tmssoftware.com                               }
{***************************************************************************}
unit ap_Mask;

interface

uses
  Windows,
  Messages,
  SysUtils,
  Classes,
  MaskUtils,
  Controls,
  StdCtrls,
  Forms,
  Graphics,
  Menus,
  Mask,
  System.Variants,
  atScript;

{$WARNINGS OFF}

type
  TatMaskLibrary = class(TatScripterLibrary)
    procedure __TCustomMaskEditCreate(AMachine: TatVirtualMachine);
    procedure __TCustomMaskEditValidateEdit(AMachine: TatVirtualMachine);
    procedure __TCustomMaskEditClear(AMachine: TatVirtualMachine);
    procedure __TCustomMaskEditGetTextLen(AMachine: TatVirtualMachine);
    procedure __GetTCustomMaskEditIsMasked(AMachine: TatVirtualMachine);
    procedure __GetTCustomMaskEditEditText(AMachine: TatVirtualMachine);
    procedure __SetTCustomMaskEditEditText(AMachine: TatVirtualMachine);
    procedure __GetTCustomMaskEditText(AMachine: TatVirtualMachine);
    procedure __SetTCustomMaskEditText(AMachine: TatVirtualMachine);
    procedure Init; override;
    class function LibraryName: string; override;
  end;

  EDBEditErrorClass = class of EDBEditError;
  TCustomMaskEditClass = class of TCustomMaskEdit;
  TMaskEditClass = class of TMaskEdit;



implementation



procedure TatMaskLibrary.__TCustomMaskEditCreate(AMachine: TatVirtualMachine);
  var
  AResult: variant;
begin
  with AMachine do
  begin
AResult := ObjectToVar(TCustomMaskEditClass(CurrentClass.ClassRef).Create(TComponent(VarToObject(GetInputArg(0)))));
    ReturnOutputArg(AResult);
  end;
end;

procedure TatMaskLibrary.__TCustomMaskEditValidateEdit(AMachine: TatVirtualMachine);
begin
  with AMachine do
  begin
    TCustomMaskEdit(CurrentObject).ValidateEdit;
  end;
end;

procedure TatMaskLibrary.__TCustomMaskEditClear(AMachine: TatVirtualMachine);
begin
  with AMachine do
  begin
    TCustomMaskEdit(CurrentObject).Clear;
  end;
end;

procedure TatMaskLibrary.__TCustomMaskEditGetTextLen(AMachine: TatVirtualMachine);
  var
  AResult: variant;
begin
  with AMachine do
  begin
AResult := Integer(TCustomMaskEdit(CurrentObject).GetTextLen);
    ReturnOutputArg(AResult);
  end;
end;

procedure TatMaskLibrary.__GetTCustomMaskEditIsMasked(AMachine: TatVirtualMachine);
begin
  with AMachine do
  begin
    ReturnOutputArg(TCustomMaskEdit(CurrentObject).IsMasked);
  end;
end;

procedure TatMaskLibrary.__GetTCustomMaskEditEditText(AMachine: TatVirtualMachine);
begin
  with AMachine do
  begin
    ReturnOutputArg(string(TCustomMaskEdit(CurrentObject).EditText));
  end;
end;

procedure TatMaskLibrary.__SetTCustomMaskEditEditText(AMachine: TatVirtualMachine);
begin
  with AMachine do
  begin
    TCustomMaskEdit(CurrentObject).EditText:=VarToStr(GetInputArg(0));
  end;
end;

procedure TatMaskLibrary.__GetTCustomMaskEditText(AMachine: TatVirtualMachine);
begin
  with AMachine do
  begin
    ReturnOutputArg(string(TCustomMaskEdit(CurrentObject).Text));
  end;
end;

procedure TatMaskLibrary.__SetTCustomMaskEditText(AMachine: TatVirtualMachine);
begin
  with AMachine do
  begin
    TCustomMaskEdit(CurrentObject).Text:=VarToStr(GetInputArg(0));
  end;
end;

procedure TatMaskLibrary.Init;
begin
  With Scripter.DefineClass(EDBEditError) do
  begin
  end;
  With Scripter.DefineClass(TCustomMaskEdit) do
  begin
    DefineMethod('Create',1,tkClass,TCustomMaskEdit,__TCustomMaskEditCreate,true,0,'AOwner: TComponent');
    DefineMethod('ValidateEdit',0,tkNone,nil,__TCustomMaskEditValidateEdit,false,0,'');
    DefineMethod('Clear',0,tkNone,nil,__TCustomMaskEditClear,false,0,'');
    DefineMethod('GetTextLen',0,tkInteger,nil,__TCustomMaskEditGetTextLen,false,0,'');
    DefineProp('IsMasked',tkVariant,__GetTCustomMaskEditIsMasked,nil,nil,false,0);
    DefineProp('EditText',tkVariant,__GetTCustomMaskEditEditText,__SetTCustomMaskEditEditText,nil,false,0);
    DefineProp('Text',tkVariant,__GetTCustomMaskEditText,__SetTCustomMaskEditText,nil,false,0);
  end;
  With Scripter.DefineClass(TMaskEdit) do
  begin
  end;
  With Scripter.DefineClass(ClassType) do
  begin
  end;
end;

class function TatMaskLibrary.LibraryName: string;
begin
  result := 'Mask';
end;

initialization
  RegisterScripterLibrary(TatMaskLibrary, True);

{$WARNINGS ON}

end.

