home *** CD-ROM | disk | FTP | other *** search
- unit UInput;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- Tempunit, ComCtrls, StdCtrls, Buttons, OleCtrls, CELLLib_TLB, ExtCtrls;
-
- type
- TFInput = class(TTemplate)
- procedure FormShow(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- FInput: TFInput;
-
- implementation
-
- {$R *.DFM}
-
- procedure TFInput.FormShow(Sender: TObject);
- begin
- inherited;
- Cell1.DoSetColWidth(0,290);
- Cell1.DoSetColWidth(1,120);
- Cell1.DoSetCellString(0,1,'[2B:2] 1-100');
- Cell1.DoSetCellInputOnlyValue(1,1,true,1,true,100);
- Cell1.DoSetCellString(0,2,'[2B:3] Lowercase');
- Cell1.DoSetCellInputControlCase(1,2,2);
- Cell1.DoSetCellString(0,3,'[2B:4] 1 char+3 number');
- Cell1.DoSetCellInputControlMask(1,3,'L999');
- Cell1.DoSetCellString(0,4,'[2B:5] Readonly');
- Cell1.DoSetCellString(1,4,'You cant change me! :-)');
- Cell1.DoSetCellReadOnly(1,4,TRUE);
-
- end;
-
- end.
-