Re: the DRAW method [message #12407] |
Wed, 29 July 1998 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Don Shad (dschad@frontiernet.net) writes:
> i was wondering if anyone could tell me what
> arguments are being passed to the mysterious
> DRAW method of the various IDLgr widgets.
>
> I have created objects which inherit from
> IDLgr things, and would like to be able to
> perform calculations when the draw method is
> called, then call the self->IDLgr<thing>::draw.
> (i.e. i want to override the method).
>
> so i have tried this, (and some other random
> flails):
>
> myobject::draw, _EXTRA=extra
>
> but i get this:
>
> % ARROW::DRAW: Incorrect number of arguments
I'm guessing that you have failed to define
an _Extra keyword for your draw method, otherwise
this should work fine.
PRO MyObject::Draw, _Extra=extra
and
thisObject->Draw, keyword=5, etc.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|