RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

Post by jgkoehn »

TRichView Version 19.5 VCL

In unit RVGrINVCL these two procedures are not compiliing.
With this message
[dcc32 Error] RVGrInVCL.pas(65): E2137 Method 'DrawImageList' not found in base class

Code: Select all

procedure DrawImageList(RVCanvas: TRVCanvas; Images: TCustomImageList;
      ImageIndex: Integer; X, Y, Width, Height: TRVCoord; BlendColor: TRVColor;
      PixelsPerInch: Integer); override;
With this message:
[dcc32 Error] RVGrInVCL.pas(68): E2137 Method 'GetImageListSize' not found in base class

Code: Select all

procedure GetImageListSize(Images: TCustomImageList;
      ImageIndex: Integer; PixelsPerInch: Integer;
      var Width, Height: Integer); override;

In unit RVWINGrln this is not compling and has this message:
[dcc32 Error] RVWinGrIn.pas(165): E2137 Method 'DrawImageList' not found in base class

Code: Select all

   procedure DrawImageList(RVCanvas: TRVCanvas; Images: TCustomImageList;
      ImageIndex: Integer; X, Y, Width, Height: TRVCoord;
      BlendColor: TRVColor; PixelsPerInch: Integer); override;
Any ideas?
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

Post by jgkoehn »

Removing the IFDEF and ENDIF in RVGrIn unit seem to make it work temporarily, what is the correct solution?

Code: Select all

    //JGK {$IFDEF RVIMAGELIST}
    procedure DrawImageList(RVCanvas: TRVCanvas; Images: TCustomImageList;
      ImageIndex: Integer; X, Y, Width, Height: TRVCoord;
      BlendColor: TRVColor; PixelsPerInch: TRVPixelsPerInch);
      virtual; abstract;
    procedure GetImageListSize(Images: TCustomImageList;
      ImageIndex: Integer; PixelsPerInch: TRVPixelsPerInch;
      var Width, Height: Integer); virtual; abstract;
    //JGK {$ENDIF}
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

Post by jgkoehn »

Also in RichView unit. I must really be messing something up or not understanding.

Code: Select all

    //JGK {$IFDEF RVIMAGELIST}
    procedure AddHotspot(const AName: TRVUnicodeString;
      ImageIndex, HotImageIndex: Integer; ImageList: TCustomImageList;
      ParaNo: Integer = -1; AVAlign: TRVVAlign = rvvaBaseline;
      const ATag: TRVTag = RVEMPTYTAG
      {$IFDEF FIREMONKEY};
      ImageWidth: TRVStyleLength = 16; ImageHeight: TRVStyleLength = 16
      {$ENDIF});
    procedure AddBullet(const AName: TRVUnicodeString; ImageIndex: Integer;
      ImageList: TCustomImageList; ParaNo: Integer = -1;
      AVAlign: TRVVAlign = rvvaBaseline; const ATag: TRVTag = RVEMPTYTAG
      {$IFDEF FIREMONKEY};
      ImageWidth: TRVStyleLength = 16; ImageHeight: TRVStyleLength = 16
      {$ENDIF});
   //JGK {$ENDIF}
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

Post by Sergey Tkachenko »

Probably you have old version of RV_Defs.inc somewhere, find it and delete.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

Post by jgkoehn »

Ah thanks
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

Post by jgkoehn »

Is there a way I can make sure TRichView is completely uninstalled and then reinstall it?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: RVGrINVCL RVWINGrln not compiling errors in Delphi 11 Alexandrian

Post by Sergey Tkachenko »

The standard way of uninstall should remove everything that was installed or created during compilation (the instruction from this link are for the trial version, but the full version is uninstalled simirarly).
However, I suspect that this RV_Defs.inc was copied to location of your project. Of course, TRichView uninstaller cannot delete copied files.
Post Reply