Subclassing from IDLitTool ?? [message #40708] |
Wed, 01 September 2004 06:24  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Hi,
i'm starting with iTools and i try this example:
************************************************************ ************
************************************************************ ************
FILE: iprobe__define.pro
;Init method
FUNCTION iprobe::Init
IF ( self -> IDLitToolbase::Init(_EXTRA = _extra) EQ 0) THEN $
RETURN, 0
RETURN, 1
END
;Define object struct
PRO iprobe__Define
struct = { iprobe, $
INHERITS IDLitToolbase $ ; Provides iTool interface
}
END
;---------------------------------
************************************************************ ************
************************************************************ ************
FILE: iprobe.pro
PRO iprobe
ITREGISTER, "Example iTool", "iprobe"
identifier = IDLITSYS_CREATETOOL("Example iTool")
END
all is fine. A new iTool component is created (empty but ok) with all
standard functionality.
The "iTool Developer's Guide" say that if i want an iTool without
standar functionality i need to subclassing from IDLitTool. I try it
replacing "IDLitToolbase" to "IDLitTool" in file iprobe__define.pro.
The result is an error (in a dialog window) like:
"A system error was... bla, bla, bla"
"The value of this error was:"
"Object reference type required in this context"
What do i need to do to subclassing from IDLitTool?
Thanks.
|
|
|