` Printed Icetips Article

Icetips Article



ABC: Preventing window from closing
2002-09-27 -- Dennis E. Evans
 
Newsgroups: comp.lang.clarion

> I have a 24/7 program that runs in the system tray. If the user right-clicks the icon,
> I am trying this in the Window Kill, before parent call, but the compiler tells me that

>the cycle can't be there.

Is the window that opens an normal template generated or was the close/cancel 
button added with the normal standard cancel/close template?

If yes, then put your code in the SetResponse method, before the parent call,

   if message(...) = 'do not quit'
     select(?SomeControl) or
     do something that needs to be done
     return
   end

  if the window is closed some other way then how?


    Dennis



Printed December 3, 2024, 11:52 am
This article has been viewed/printed 35421 times.
Google search has resulted in 9 hits on this article since January 25, 2004.