DrawShapeCanvas Change

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
INL2
Newbie
Newbie
Posts: 22
Joined: Mon Aug 18, 2008 12:00 am

DrawShapeCanvas Change

Post by INL2 » Fri Sep 08, 2017 8:59 pm

We are needing to upgrade our version of TeeTree, so I downloaded the latest version but now the overriding the procedure DrawShapeCanvas gives us issues.

We override the function to do some custom drawing and get the following error.
- "Declaration of 'DrawShapeCanvas' differs from previous declaration"

Current override
procedure DrawShapeCanvas(ACanvas:TCanvas3D; Const R:TRect); override;

I can't find anywhere what the new deceleration of DrawShapeCanvas is defined as (help files or online).

Could someone with the fullsource code look it up for me in TeeTree.TTreeNodeShape

Prev TeeTree version - 8.08
New version - 2017.22

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DrawShapeCanvas Change

Post by Yeray » Tue Sep 12, 2017 9:10 am

Hello,

This is the current declaration of DrawShapeCanvas:

Code: Select all

procedure DrawShapeCanvas(const ACanvas:TCanvas3D; Const R:TRect);
Note the "const" in the first argument.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

INL2
Newbie
Newbie
Posts: 22
Joined: Mon Aug 18, 2008 12:00 am

Re: DrawShapeCanvas Change

Post by INL2 » Tue Sep 12, 2017 7:24 pm

Thanks, that works now.

Post Reply