[futurebasic] Re: [FB] Things not to do in the background (or what to do after receiving _suspend)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Fri, 14 Dec 2001 01:13:38 -0500
>I just realized that my program might be doing things while in the
>background that it should not be doing.  What I mean is that you
>should be able to determine that your program is not the fore most
>application after it receives the _suspend dialog event (sp?), right?
>
>What are things you should not do after that?
>
>I had a cursor call, that can't be good, right?
=
>Michael Kluskens <mkluskens@...>


What I do is

Case _MFEvent  // or whatever that one is
Select Case ID

Case _MFSuspend
gInFront = _False
Cursor _ArrowCursor // good idea just in case
Case _MFResume
gInFront = _True
End Select

Then key any cursor changes or other actions in an event loop to only work
when gInFront = _True.

I was, in one program before I realized it, changing the cursor even when
in the background. Not cool. :)

Seems to me you can do whatever you want when in the background, as long as
you leave time for the other apps of course.

rc