Using CreateButton
Posted: Mon Sep 13, 2004 9:11 pm
Hi
I'm trying to add a button to a TTeeCommander in C++ builder 6.0 using version 7.01 of Tchart
I drop a TTeecommander and a TButton on a form and add this code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TeeCommander1->CreateButton(310, Button1Click, "Open", "", 0);
}
It will not compile with this error:
[C++ Error] Unit1.cpp(20): E2285 Could not find a match for 'TCustomTeeCommander::CreateButton(int,void,char *,char *,int)'
What file do I need to include?
TeeComma.hpp is allready included
Thanks Torben Laursen
I'm trying to add a button to a TTeeCommander in C++ builder 6.0 using version 7.01 of Tchart
I drop a TTeecommander and a TButton on a form and add this code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TeeCommander1->CreateButton(310, Button1Click, "Open", "", 0);
}
It will not compile with this error:
[C++ Error] Unit1.cpp(20): E2285 Could not find a match for 'TCustomTeeCommander::CreateButton(int,void,char *,char *,int)'
What file do I need to include?
TeeComma.hpp is allready included
Thanks Torben Laursen