In the following code, I'm trying to create a class that contains a TextField. In this case, the TextField default constructor is just fine for my needs, as it supplies it with some default dimensions, but what if I want a TextField with different dimensions?
Code:
// graphics controller class
class GraphCon : public MessageReceiver<GraphConMessage *> {
protected:
TextField field;
};
It won't let me do
Code:
TextField field(12,14,'s');
in the class definition, even though this seems to be legal in normal code. Is there any way to make the TextField with something besides the default constructor without using 'new'?