Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Tcanvas3d (https://www.delphipraxis.net/8096-tcanvas3d.html)

Gandalfus 28. Aug 2003 16:41

Re: Tcanvas3d
 
vileicht musst du in T noch was einstellen.

Nimoee 28. Aug 2003 16:48

Re: Tcanvas3d
 
hallo,
hier der Code

Delphi-Quellcode:
type
  TForm1 = class(TForm)
    Button1: TButton;
    PB1: TPaintBox;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
    t3d:Tcanvas3d;
    t:TView3DOptions;
    tr,ts:trect;
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
     t3d:=Tcanvas3d.Create;
     t3d.ReferenceCanvas:=form1.canvas;
     t:=TView3DOptions.Create(self);
     t.parent:=form1;
     tr.left:=10;
     tr.right:=200;
     tr.top:=10;
     tr.bottom:=200;
     t.Orthogonal:=true;
     ts:=t3d.InitWindow(pb1.canvas, T,clred, true , tr);

//     t3d.TextOut3D (10,10,10,'Test');
end;
[edit=Admin]Delphi-Tags eingefügt. Bitte künftig selber machen. :wink: Mfg, Daniel[/edit]

CalganX 28. Aug 2003 16:50

Re: Tcanvas3d
 
Lass das mit der Zuweisung von ts!
Des Weiteren wurde tr nicht mit Trect.Create erstellt... ;)

Chris

Nimoee 28. Aug 2003 16:54

Re: Tcanvas3d
 
hallo

trect ist ein record, keine Klasse. Kann niemals der Fehler sein!

nimoee

CalganX 28. Aug 2003 16:58

Re: Tcanvas3d
 
Stimmt... *jetzt auch probier*

Chris

Nimoee 28. Aug 2003 17:06

Re: Tcanvas3d
 
hallo,

in die uses Klausel muss noch tecanvas rein

nimoee

CalganX 28. Aug 2003 17:15

Re: Tcanvas3d
 
War etwas das der Fehler??? :shock:

Chris

Nimoee 28. Aug 2003 17:17

Re: Tcanvas3d
 
hallo,

nein nur für dich ein Hinweis!

nimoee

Nimoee 29. Aug 2003 09:09

Re: Tcanvas3d
 
hallo,

ich weiss warums nicht geht! Alle Methoden bis auf create sind abstract definiert und damit nur abstract vorhanden.

nimoee


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:58 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz