arkady_c Messages: 14 Registered: December 2010 Location: Polska
Promising Member
Howk
I heaw problem in public Ctrl
serwis_ide.h
class SYSTEM_LAY : public WithsystemLayout<TopWindow> {
public:
ChartBOA chartsystem; //my class!!!
typedef SYSTEM_LAY CLASSNAME;
SYSTEM_LAY(){
chartsystem(7);//this is problem?
Add(chartsystem.LeftPos(0, 800).TopPos(0, 550));
//chartsystem.SetMaxSerii(7);//this is OK}
//chartsystem.SetMaxSerii(7);//this is OK
but I want in constructor set param my chart, NATURALLY if this no conceivably I USE metod SetMaxSerii
D:\JOWISZ\serwis_ide\/serwis_ide.h: In constructor 'SYSTEM_LAY::SYSTEM_LAY()':
D:\JOWISZ\serwis_ide\/serwis_ide.h:40: error: no match for call to '(ChartBOA) (int)'
class boa : public WithboaLayout<TopWindow> {
SYSTEM_LAY systemL;
...
boa::boa()
{
CtrlLayout(*this, "SERWIS");
CtrlLayout(systemL);
...
class ChartBOA : public Ctrl
{
private:
int MaxSerii;
...
public:
typedef ChartBOA CLASSNAME;
virtual void Paint (Draw& w);
void SET_Serie();
ChartBOA(int maxserii=16);
void SetMaxSerii(int amaxserii){MaxSerii = amaxserii;}
...
ChartBOA::ChartBOA(int maxserii) : MaxSerii(maxserii)
I do not know if I have used well class Ctrl -inheritance-