Marco Cantù 1998, Mastering Delphi 4
Project: OLECONT.DPR
Project Structure
OLECONT.DPR
program Olecont;
uses
Forms,
OleForm in 'OleForm.pas' {Form1};
{$R *.RES}
begin
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
OLEFORM.PAS
unit Oleform;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Menus, ExtCtrls, OleCtnrs;
type
TForm1 = class(TForm)
OleContainer1: TOleContainer;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
end.
OLEFORM.DFM
object Form1: TForm1
Left = 179
Top = 115
Width = 253
Height = 245
Caption = 'Minimal OLE Container'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
PixelsPerInch = 96
TextHeight = 13
object OleContainer1: TOleContainer
Left = 0
Top = 0
Width = 245
Height = 218
Align = alClient
SizeMode = smCenter
TabOrder = 0
Data = {...skipped...}
end
end
Copyright Marco Cantù 1998