remove from memory

Jan Schenkel janschenkel at yahoo.com
Tue Jul 20 15:26:44 EDT 2004


--- Bob Hartley <bob at armbase.com> wrote:
> > >
> > >   on getMeOuttaHere
> > >      answer "Are you sure you want to quit?"
> with
> > > "No way" or "OK"
> > >      if it is "OK" then quit
> > >    end getMeOuttaHere
> > >
> > > My app has a stack (copied to the saved .sdb
> fiel)
> > > that is populated by
> > > boxes from another stack. In the stack that is
> > > copied I put the code above.
> >
> > >
> >
> >Hi Bob,
> >
> >Where is this message in the message path, and how
> is
> >this message triggered by a user action ?
> 
> 
> Hi Jan
> 
> OK I now get it. I thought that the code above was
> trigered by the close 
> window X ie the one at the top of the window (right
> in windows). I now see 
> that it has to be allocated to a button or similar.
> 
> It would be nice if I could allocate the code to the
> close window X in 
> windows. Is that possible?
> 
> Cheers
> Bob
> 

Hi Bob,

Take a look at the 'closeStackRequest' message -- if
you pass it, a 'closeStack' message is sent and the
stack is closed ; if you don't pass it, the stack
stays open. Example :
--
on closeStackRequest
  answer "Are you sure you want to quit?" \
     with "No way" or "OK"
  if it is "OK" then quit
end closeStackRequest
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


	
		
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/


More information about the use-livecode mailing list