DrawShapeCanvas Change

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.

DrawShapeCanvas Change

Postby 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
INL2
Newbie
Newbie
 
Posts: 22
Joined: Mon Aug 18, 2008 12:00 am

Re: DrawShapeCanvas Change

Postby 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 ImagePlease read our Bug Fixing Policy
Yeray
Site Admin
Site Admin
 
Posts: 8107
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Re: DrawShapeCanvas Change

Postby INL2 » Tue Sep 12, 2017 7:24 pm

Thanks, that works now.
INL2
Newbie
Newbie
 
Posts: 22
Joined: Mon Aug 18, 2008 12:00 am


Return to VCL

Who is online

Users browsing this forum: No registered users and 6 guests