Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!decwrl!sgi!mtoy From: mtoy@xman.SGI.COM (Michael Toy -- The S.G.I. XMAN) Newsgroups: comp.sys.mac.programmer Subject: Blinking cursor in modeless dialog ... Message-ID: <11406@sgi.SGI.COM> Date: 23 Feb 88 17:50:53 GMT Sender: daemon@sgi.SGI.COM Distribution: na Organization: Silicon Graphics Inc, Mountain View, CA Lines: 34 Keywords: DIALOG CURSOR BLINK I can't get the cursor to blink in a dialog box. All my previous dialog boxes have been handled by "ModalDialog()" which does all the right things for me. Inside Mac tells me that I need to call "IsDialogEvent" and then "DialogSelect" after a "GetNextEvent" even if "GetNextEvent" returns false in order for the TextEdit cursor in my modeless dialog box to blink. I translated that statement to this code: if (GetNextEvent(everyEvent, &anEvent)) /* ** This is my event handler, it also calls IsDialogEvent and ** DialogSelect */ handle_event(&anEvent); else { #ifdef THISDOESNTWORK if (IsDialogEvent(&anEvent)) DialogSelect(&anEvent, &theItem, &theDialog); #else /* ** This also doesn't work, but I tried it because a different ** interpretation of IM indicates this would be correct. */ (void) IsDialogEvent(&anEvent) DialogSelect(&anEvent, &theItem, &theDialog); #endif } The above code is from memory so don't tell me that my arguments to DialogSelect are in the wrong order. I've already spent a while bashing my brains against the wall looking for little things like that. (Well, now that I've mentioned it, doubt fills my brain, "Did you REALLY make sure ??? :-) -- Michael Toy, secret identity: the XMAN at Silicon Graphics {ames,decwrl,sun}!sgi!mtoy