Home » U++ Library support » U++ Widgets - General questions or Mixed problems » public Ctrl in my class - param in constructor problem
Re: public Ctrl in my class - param in constructor problem [message #29951 is a reply to message #29948] |
Wed, 01 December 2010 12:33 |
|
Hi,
You have a slight problem in your C++ syntax. It should be constructor():var(init_value),another_var(init){ constructor body; }. That is in your case:
class SYSTEM_LAY : public WithsystemLayout<TopWindow> {
public:
ChartBOA chartsystem;
typedef SYSTEM_LAY CLASSNAME;
SYSTEM_LAY():chartsystem(7){
Add(chartsystem.LeftPos(0, 800).TopPos(0, 550));
}
Also, in the last code snippet, the constructor definition misses the function body (maybe you just forgot to copy it, but I mention it to be sure ), there must be one even if it is empty:ChartBOA::ChartBOA(int maxserii) : MaxSerii(maxserii){}
Otherwise it seems OK.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Thu Jun 06 11:41:25 CEST 2024
Total time taken to generate the page: 0.02533 seconds
|