Page 1 of 1

DrawShapeCanvas Change

Posted: Fri Sep 08, 2017 8:59 pm
by 10049920
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

Re: DrawShapeCanvas Change

Posted: Tue Sep 12, 2017 9:10 am
by yeray
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.

Re: DrawShapeCanvas Change

Posted: Tue Sep 12, 2017 7:24 pm
by 10049920
Thanks, that works now.