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

Home » Public Forums » archive » Re: 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
Re: Subclassing from IDLitTool ?? [message #40850 is a reply to message #40705] Wed, 01 September 2004 15:35 Go to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <MPG.1b9fb5c11558d7fc989873@news.frii.com>, "David Fanning"
<davidf@dfanning.com> wrote:

> Didn't work for me. I get the same error as before. :-( Cheers,
> David

I put the following code in a fresh file, compile the file, and then run the
IPROBE procedure, it works first time. You can even take out the 'file'
menu item. It still works for me. I'm not sure it's a bug, but you need
at least one manipulator/tool to start the iTool.

If that doesn't work, but the IDLitToolbase version works. Have a look
at the IDLitToolbase source. Strip the menus out of there until your left
with the minimum that will compile :)

As you said, this isn't possible with the information given in the
documentation.

{ x86 linux unix linux 6.0 Jun 27 2003 32 64}

Chris.

;start
FUNCTION iprobe::Init

if( self->IDLitTool::Init(_extra=_extra) eq 0)then $
return, 0
;file
self->RegisterOperation, 'Exit', 'IDLitopFileExit', $
IDENTIFIER='File/Exit', /SEPARATOR

;button
self->RegisterManipulator, 'Arrow', 'IDLitManipArrow', $
ICON='arrow', /DEFAULT, IDENTIFIER="ARROW", $
DESCRIPTION='Click to select items, click and drag to select multiple items'

return, 1

END

;Define object struct
PRO iprobe__define
struct = { iprobe, $
INHERITS IDLitTool $ ; Provides iTool interface
}
END

PRO iprobe

ITREGISTER, "Example iTool", "iprobe"
identifier = IDLITSYS_CREATETOOL("Example iTool")
END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vector dispay size
Next Topic: Re: 6.1 IDLDE project amnesia

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

Current Time: Sat Oct 11 15:12:29 PDT 2025

Total time taken to generate the page: 1.51655 seconds