acLFPainter needs knowledge og DevExpr libraries

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36208
    HeDiBo
    Participant

    If you have Developer Express installed, it does not mean you have all it's component libraries.

    In acLFPainter you'll have to know if the library ExpressBars is installed (or it will never compile). As far as I know the only way to do that is to include the DevExpr general version include file cxVer.inc

    The top of the acLFPainter module should then read:

    Code:
    {$I cxVer.inc}

    interface

    uses
    Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ImgList,
    cxLookAndFeelPainters, cxGraphics, cxClasses, dxCore,
    {$IFDEF VER12_1_6}cxPCPainters, cxPC, cxLookAndFeels, cxPCPaintersFactory,
    {$ifdef EXPRESSBARS} dxStatusBar, {$endif} {$ENDIF} //<<<--- dxStatusBar not always included
    {$IFNDEF DELPHI5}Types, {$ENDIF}
    sSkinManager, sStyleSimply, sMaskData;

    Further down in the code, you'll have to have occasional {$IFDEF EXPRESSBARS} statements.

    #52206
    Support
    Keymaster

    I will try to do it later. thank you for suggestion.

    #52212
    HeDiBo
    Participant
    'Support' wrote:

    I will try to do it later. thank you for suggestion.

    It appeared a little bit messy. The place where I put the {$I cxVer.inc} statement is wrong, because it interferes with definitions in sDefs.inc (in particular it defines symbol Delphi5, which is wrong).

    The following construct (although messy, I admit) will work:

    Code:
    {$I cxVer.inc}
    {$undef DELPHI5} // Let sDefs.inc redefine this one

    {$I sDefs.inc}

    Good luck

    #52467
    HeDiBo
    Participant

    Solved :a3:

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.