Autor Beitrag
Stefan-W
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 475

Win 7 SP1
D2005 PE
BeitragVerfasst: Do 07.12.06 20:58 
Hi,

ich hab ein kleines Problem mit der Standardwertzuweisung beim Typ TPoint.

Bei Stings und Integern ist das kein Problem...
ausblenden Delphi-Quelltext
1:
2:
    Skin: String = 'Aero';
    IconCashPos_X: Integer = 92;

aber
ausblenden Delphi-Quelltext
1:
    IconCashPos: TPoint = (92,86);					

geht leider nicht. Ich hab auch schon andere Varianten ausprobiert, allerdings ohne Erfolg.
Wie mache ich das nun am bessten?

Tschau Stefan


Zuletzt bearbeitet von Stefan-W am Fr 08.12.06 15:53, insgesamt 1-mal bearbeitet
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 07.12.06 21:40 
Hallo,

sollte funktionieren:
ausblenden Delphi-Quelltext
1:
IconCashPos : TPoint = (x: 92;y: 86);					


ps.: Im Titel ist ein 't' zuviel :wink:

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Stefan-W Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 475

Win 7 SP1
D2005 PE
BeitragVerfasst: Fr 08.12.06 15:56 
Danke

ich hatte schon an einigen stellen gesucht... (Onlinehilfe, Forum, und paar Hilfearchive) und nix gefunden.

Danke nochmal

Tschau Stefan


PS: :roll: hab das "t" mal korigiert...