Autor Beitrag
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Sa 31.05.03 16:02 
Problem: s.u.

Ich mach eine neue Klasse TZeiger

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
  TZeiger = record
    Visible: boolean;
    Length: Extended;
    Pen: TPen;
  end;

{...}

   {Protected}
    FStdZeiger: TZeiger;
    FMinZeiger: TZeiger;
    FSekZeiger: TZeiger;

{...}

   {Published}   
    property StdZeiger:TZeiger read FStdZeiger write FStdZeiger;
    property MinZeiger:TZeiger read FMinZeiger write FMinZeiger;
    property SekZeiger:TZeiger read FSekZeiger write FSekZeiger;

{...}

  {Create}

  StdZeiger.Pen := TPen.Create;
  MinZeiger.Pen := TPen.Create;
  SekZeiger.Pen := TPen.Create;

  StdZeiger.Visible := true;
  MinZeiger.Visible := true;
  SekZeiger.Visible := true;

  StdZeiger.Length := 1/2;
  MinZeiger.Length := 1.25;
  SekZeiger.Length := 1;

  StdZeiger.Pen.Width := 5;
  MinZeiger.Pen.Width := 2;
  SekZeiger.Pen.Color := clRed;


Aber der sagt "der Linken Seite kann nichts zugewiesen werden" bei StdZeiger.Pen := TPen.Create;

Und StdZeiger:=TZeiger.Create; geht auch net
Fis
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 31.05.03 17:13 
Vorsicht: ein record ist keine Klasse und kann nicht created werden.
Ein TZeiger.Create gibt es also gar nicht.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Tweafis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Sa 31.05.03 17:39 
Hmm, ich sag ja Create geht nicht, aber es sagt auch so nicht.