Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Initialisierung von TRect Konstanten (https://www.delphipraxis.net/75168-initialisierung-von-trect-konstanten.html)

Chris P 15. Aug 2006 12:09


Initialisierung von TRect Konstanten
 
Hi Leute,

gibt es eine Möglichkeit TRects zu initialisieren ohne eine solche Zuweisung:
Delphi-Quellcode:
   
with rc do
begin
    Left := 0;
    Top := 0;
    Right:= 20;
    Bottom := 20;
end
Gibt es sowas in der Art:
Delphi-Quellcode:
const
     RC: TRect=(0, 0, 20, 20);
Danke schonmal...

Muetze1 15. Aug 2006 12:10

Re: Initialisierung von TRect Konstanten
 
Delphi-Quellcode:
const
     RC: TRect = ( Left:0; Top:0; Right:20; Bottom:20);

Nikolas 15. Aug 2006 12:11

Re: Initialisierung von TRect Konstanten
 
such mal nach 'rect'.

Chris P 15. Aug 2006 12:13

Re: Initialisierung von TRect Konstanten
 
Vielen Dank!


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:28 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