[comp.sys.mac.programmer] Disappearing Cursor on Mac II

jsl@bii.UUCP (jsl) (02/08/90)

I am having a problem with the display of the cursor in an
application program I am writting running on the Mac II.  The
symptoms are as follows:

1. As long as I am in my application's windows and don't access any
DA's the cursor displays fine.

2.  I can use the calculator without a problem, and a couple of
other DA's.

3.  If I try to use the alarmclock or the Control Panel the cursor
disappears.  The cursor will also disappear if I use SFGetFile.
The position of the cursor is still interpreted correctly, but it
is hard to position it when you can't see it!!!!

Below is the event handling loop that I am using.  The symptoms
change somewhat whether I force the use WNE or GNE.  The code
dosn't have any HideCursor calls.

void EventLoop()
{
    RgnHandle cursorRgn;
    Boolean gotEvent;
    
    do
    {
    cursorRgn = NewRgn();
    if (gHasWaitNextEvent)
    {
      gotEvent = WaitNextEvent(everyEvent, &gEvent, GetSleep(gCurrWind),
                                     cursorRgn);
    } 
    else
    {
      SystemTask();
      gotEvent = GetNextEvent(everyEvent, &gEvent);
    }

I haven't a clue why this happens.  Does someone have a
suggestion as to the cause of the problem?

======================================================================
Joe Laughlin                                        jsl@bii.bruker.com
Bruker Instruments, Inc.                                (508) 667-9739
======================================================================