Subclass method
June
somewhere at so.com
Tue May 6 17:02:22 PDT 2008
June Wrote:
> BCS Wrote:
>
> > Reply to June,
> >
> > > I want to add a methd to an instance of dwt.widgets.Text.
> > >
> > > void setText(char[] name, char[] text){ name.setText(text);}
> > >
> > > there is ' setText(char[] text) ' in the base class
> > >
> > > each instance has a name. I cannot get this to work? the Tango book
> > > covers this very weakly
> > >
> >
> > I'm not following what you want to do.
> >
> > Do you want to add methods to a class that inherits from dwt.widgets.Text?
>
> Yes
>
Do you want to add method to a the dwt.widgets.Text class?
It is also this -I am using numerous text boxes each with a name .
and I want to change the text on each as I create it
I need a method to make the normal 'setText(text) method into setText( name,text)
More information about the Digitalmars-d-learn
mailing list