Constructor in desc file?
Posted on 1997-06-04
I'm using Visual Cafe Pro.
In my applet, I'm including a class, that needs to get the
applet object, or appletContext, in order to call showStatus,
I can do this by sending the applet in the class's constructor - MyClass myClass1 = new MyClass(this);
However I want the class I'm including to be a Visual Cafe
component, and I want the 'new' statement to be added automatically, when I include the class.
This isn't a problem, however: Visual Cafe Pro adds the
class using a default constructor:
MyClass MyClass1 = new MyClass();
And I need it to send the applet ( add a 'this' in the parentheses ).
I think that this needs a special change to the classe's
Something simmilar to: "%name% = new %class%(this);"
But this, by itself doesn't work.
What can I do?