Search code examples
delphidelphi-7

Properties in Delphi 2006 and 7


TEdit looks like this in dfm of Delphi 2006 code.

object myEdit: TEdit
   AlignWithMargins = True
   Left = 15
   Top = 25
   Width = 50
   Height = 20
   Margins.Left = 20
   Margins.Top = 30
   Margins.Bottom = 16
   Align = alLeft
   Anchors = [akLeft, akTop, akRight, akBottom]
   ExplicitWidth = 100
   ExplicitHeight = 32
end

But some properties (like AlignWithMargins, Margins, Align, ExplicitWidth, ExplicitHeight) are not there in Delphi 7. What are the equivalent properties in Delphi 7 and above versions?


Solution

  • Delphi 7 doesn't have those properties, nor equivalent ones, because Delphi 7 was released before Delphi 2006.

    • Delphi 7 was released in 2002
    • Delphi 8 - released in 2003
    • Delphi 2005 - released in 2004
    • Delphi 2006 - released in 2005

    Delphi programming language

    If you want to port code from Delphi 2006 to Delphi 7, you will have to delete all those properties from your .dfm files.