Hi!
Ich habe irgendwie ein Prob!
Einmal habe ich wie folgt die Funktion und die Variable deklariert.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| constructor ToglLabel.create(aPosition:TRect; aText: array of string); begin inherited create(aPosition); MultiLineText := aText; TexFont := TTexFont.Create(imagepath + 'font.tga'); fontcolor.Red := 0; fontcolor.Green := 0; fontcolor.Blue := 0; fontcolor.Alpha := 1; fontsize := 1; end; |
Delphi-Quelltext
1:
| MultiLineText: array of string; |
Und so der Aufruf und die andere Variable.
Delphi-Quelltext
1:
| ASB_Text: array of string; |
Delphi-Quelltext
1: 2: 3: 4: 5:
| vRect.Left := 300;vRect.Top := 100;vRect.Right := 280;vRect.Bottom := 80; setlength(ASB_Text,2); ASB_Text[0] := 'Das ist'; ASB_Text[1] := 'der Text'; submenu1_1_ASB_text := ToglLabel.create(vRect,ASB_Text); |
So, das wars.
Fehler: Array und Dynamiy Array passen nicht zusammen.
Gemeint ist damit Multilinetext und aText
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.