comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Subclassing from IDLitTool ??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Subclassing from IDLitTool ?? [message #40708] Wed, 01 September 2004 06:24 Go to previous message
Antonio Santiago is currently offline  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.
[Message index]
 
Read Message
Read Message
Previous Topic: problems with contouring in a for loop
Next Topic: Hot key using in Xmanager V2.0

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:26:33 PDT 2025

Total time taken to generate the page: 1.36091 seconds