DrawText in TAnnotationTool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
BE
Newbie
Newbie
Posts: 41
Joined: Tue Nov 16, 2004 5:00 am

DrawText in TAnnotationTool

Post by BE » Fri Apr 03, 2009 2:23 pm

Hi,

I'm trying to derive a new class TMyTextBox from TRectangleTool.

class TMyTextBox : public TRectangleTool
{
protected :

// void __fastcall DrawText(void)/* overload */;

public :

__fastcall TMyTextBox(Classes::TComponent* AOwner);

};

__fastcall TMyTextBox::TMyTextBox(Classes::TComponent* AOwner)
: TRectangleTool(Owner)
{

}


When I compile this, I get error msg
Link 32 Error : Unresolved external '__fastcall TeeTools::TAnnotationTool::DrawTextA()' referenced from UNIT1.OBJ

So I add the following in the header file

void __fastcall DrawText(void)/* overload */;


void __fastcall TMyTextBox::DrawText()
{
TAnnotationTool::DrawText();
}

I still get the Link error msg. What am I doing wrong here?

Thanks

-Bill

Post Reply