Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Rect in Variable? (https://www.delphipraxis.net/11348-rect-variable.html)

Pyr0cracker 4. Nov 2003 20:43


Rect in Variable?
 
Hallo!
Wie kann ich die einzelnen Elemente eines TRect in Variablen speichern/anzeigen ?

Danke schonmal,

neolithos 4. Nov 2003 21:02

Re: Rect in Variable?
 
genauso wie du integer speicherst und lädst

Delphi-Quellcode:
var rc : TRect;
...
rc.Left
rc.Top
rc.Bottom
rc.Right

Niko 4. Nov 2003 21:24

Re: Rect in Variable?
 
Zuweisen kannst du die Werte alternativ auch so:
Delphi-Quellcode:
rc := Rect(WertLinks, WertOben, WertRechts, WertUnten);

Pyr0cracker 4. Nov 2003 23:12

Re: Rect in Variable?
 
ja, aber wie kann ich die einzelnen werte anzeigen lassen?
sowas wie
Delphi-Quellcode:
var dings: integer;
...
dings := rect(left);

neolithos 4. Nov 2003 23:25

Re: Rect in Variable?
 
Delphi-Quellcode:
var dings: integer;
    rc : TRect;
...
dings := rc.Left;

Pyr0cracker 5. Nov 2003 00:11

Re: Rect in Variable?
 
Danke


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:27 Uhr.

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