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

Home » Public Forums » archive » Re: Returning Values in iTools
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: Returning Values in iTools [message #46931] Tue, 10 January 2006 15:42 Go to previous message
David Alexander is currently offline  David Alexander
Messages: 26
Registered: August 2005
Junior Member
Hmm, well, looking more closely at the IDLitOpShutdown class, it's a
little more complicated.

When the user tries to exit the tool, if there are any changes, they
are prompted whether they want to save the session. If they click
'Cancel', the tool doesn't close.

So in that case, the DoAction method you implement in your special
shutdown service class should take that into account, something like
this:

function MyShutdownService::DoAction,oTool

;Need to get the object that called IDLITSYS_CREATETOOL here.
;You could store it somewhere in the tool object.

;Then, call superclass
result=self->IDLitOpShutdown::DoAction(oTool)

;See if we're really shutting down.
;If we are, the superclass will have destroyed the tool object.
if ~OBJ_VALID(oTool) then $
;Call the callback on the object that created
IDLITSYS_CREATETOOL

return,OBJ_NEW()
end
[Message index]
 
Read Message
Read Message
Previous Topic: Returning Values in iTools
Next Topic: Encapsulating IDL snippets into objects

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

Current Time: Sat Oct 11 11:05:56 PDT 2025

Total time taken to generate the page: 0.72308 seconds