home *** CD-ROM | disk | FTP | other *** search
-
- {*******************************************************}
- { }
- { Delphi Visual Component Library }
- { }
- { Copyright (c) 1995 Borland International }
- { }
- {*******************************************************}
-
- unit MaskText;
-
- interface
-
- uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, StdCtrls,
- Buttons, DsgnIntf, Mask;
-
- type
-
- { TMaskTextProperty
- Property editor for the Caption and Text properties. Removes auto-update
- feature of normal text property to allow validation. }
-
- TMaskTextProperty = class(TStringProperty)
- public
- function GetAttributes: TPropertyAttributes; override;
- procedure Edit; override;
- end;
-
- type
- TMaskTextForm = class(TForm)
- OKBtn: TBitBtn;
- CancelBtn: TBitBtn;
- HelpBtn: TBitBtn;
- Label3: TLabel;
- TestEdit: TMaskEdit;
- Label1: TLabel;
- EditMask: TLabel;
- procedure FormCreate(Sender: TObject);
- public
- { Public declarations }
- end;
-
- var
- MaskTextForm: TMaskTextForm;
-
- implementation
-