[futurebasic] Re: Re: [FB] PG - messages

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1999 : Group Archive : Group : All Groups

From: Jamin <benjamen@...>
Date: Fri, 2 Apr 1999 09:43:15 +1000
>
> I could of course be wrong about what the call back requires - Jamin?
>
>

I think you are hitting the problem where you are trying to do the updates within the call-back.  In the docos, Apple want you to pass the raw events given to you in the call-back to your main event loop.  This is a problem because FB/PG apps dont have a standard main event loop.  INVALRECT
etc generate an event, but the event is stolen by the Nav Dialog, then given back to you in the call-back!  So you must -act- on the update event, not just post another message/event, as it too will be intercepted by the Nav Dialog.  Remember that FB/PG is not running an event-loop while you are in a NavServices call, so no "real" OS events will be handled.  You should be able to use PGs framework to get around this as suggested by Greg's code.

Jamin