home *** CD-ROM | disk | FTP | other *** search
- unit Fdemo14;
-
- interface
-
- uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, Buttons,
- StdCtrls, PrnWin, DBCtrls, Mask, ExtCtrls, DB, DBTables, CB_Types,
- DBPrnWin, CB_MFunc;
-
- type
- TForm14 = class(TForm)
- Panel1: TPanel;
- Memo1: TMemo;
- DataSource1: TDataSource;
- Table1: TTable;
- ScrollBox1: TScrollBox;
- Shape1: TShape;
- Panel2: TPanel;
- Panel3: TPanel;
- Panel4: TPanel;
- Panel5: TPanel;
- Shape3: TShape;
- Shape4: TShape;
- Shape9: TShape;
- Shape10: TShape;
- Shape11: TShape;
- Shape12: TShape;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- Label5: TLabel;
- Label6: TLabel;
- Edit1: TEdit;
- EditContact: TDBEdit;
- EditCompany: TDBEdit;
- EditAddr: TDBEdit;
- EditAddr2: TDBEdit;
- EditState: TDBEdit;
- Label7: TLabel;
- EditPhone: TDBEdit;
- Label8: TLabel;
- EditFAX: TDBEdit;
- Label9: TLabel;
- Label10: TLabel;
- Label11: TLabel;
- Label12: TLabel;
- Label13: TLabel;
- Label14: TLabel;
- DBNavigator: TDBNavigator;
- View: TBitBtn;
- Exit: TBitBtn;
- Memo2: TMemo;
- Memo3: TMemo;
- Image1: TImage;
- DBPrintWin1: TDBPrintWin;
- procedure ViewClick(Sender: TObject);
- procedure FormActivate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form14: TForm14;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm14.ViewClick(Sender: TObject);
- begin
- DBPrintWin1.BeginPrint;
- ScrollBox1.BorderStyle := bsNone; { No outside border for ScrollBox }
- ScrollBox1.VertScrollBar.Position := 0; { Position at top of page }
- DBPrintWin1.DrawWindow( 1, poCenter, ScrollBox1);
- ScrollBox1.BorderStyle := bsSingle;
- DBPrintWin1.EndPrint;
- end;
-
- procedure TForm14.FormActivate(Sender: TObject);
- begin
- ScrollBox1.VertScrollBar.Position := 0;
- ScrollBox1.HorzScrollBar.Position := 0;
-
- end;
-
- end.
-