Skip to content

Compilation issue in Laz 4.99 #4

Description

@wp-xyz

Due to a change in Laz 4.99, this package does not compile any more: a 4th element has been added to the TTextLayout enumeration, and therefore the three elements in TextLayoutFlags: array[TTextLayout] of Integer = (DT_TOP, DT_VCENTER, DT_BOTTOM) are no longer valid. DT_TOP must be added as 4th element:

uses
  ..., LCLVersion, ...;
const
  TextLayoutFlags: array[TTextLayout] of integer = (DT_TOP, DT_VCENTER, DT_BOTTOM{$IF LCL_FullVersion >= 499}, DT_TOP{$IFEND});

Furthermore, the function OffsetRect has been remove from unit LCLIntf, it is in unit Types now. Since Types is already in "uses" just remove the qualifier LCLIntf from LCLIntf.OffsetRect.

When this is fixed please send me a mail to opm@lazarus-ide.org so that I can update OPM with the new version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions