Einzelnen Beitrag anzeigen

mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#7

Re: ActiveX "Component"-->"importieren&

  Alt 25. Jun 2008, 18:34
Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, OleCtrls, DBOleCtl;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

uses ABARCODELib_TLB;

procedure TForm1.Button1Click(Sender: TObject);
var
    abc: TActiveBC;
begin
    abc := TActiveBC.Create( self);
    abc.Parent := Self;
    abc.Left := 100;
    abc.Top := 100;
end;

end.
Markus Kinzler
  Mit Zitat antworten Zitat