Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!sri-unix!sri-spam!mordor!lll-lcc!ames!aurora!labrea!jade!ucbvax!BRILLIG.UMD.EDU!don From: don@BRILLIG.UMD.EDU.UUCP Newsgroups: comp.windows.news Subject: Two minor glitches - fixes? Message-ID: <8709242203.AA03633@brillig.umd.edu> Date: Thu, 24-Sep-87 22:31:51 EDT Article-I.D.: brillig.8709242203.AA03633 Posted: Thu Sep 24 22:31:51 1987 Date-Received: Sat, 26-Sep-87 16:05:27 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 42 Date: Thu, 24 Sep 87 09:30:51 PDT From: Greg Earle I've noticed two apparent glitches with NeWS related things, and am wondering if we can get pointers to fixes (NeWS 1.0): (1) Don, I load your `piemenu.ps' in user.ps and everything works fine, but for some reason trying to bring up the little substitute X menu inside an xdemo (like `xload') causes the server to choke, and any subsequent tries yield nothing. Any ideas? [ ... ] Greg Earle earle@mahendo.JPL.NASA.GOV S(*CENSORED*)t earle%mahendo@jpl-elroy.ARPA [aka:] Rockwell International earle%mahendo@elroy.JPL.NASA.GOV Seal Beach, CA ...!cit-vax!elroy!jplgodo!mahendo!earle Aah, yes. That's because piemenu.ps gets the XLocation and YLocation about which to center the event returned by "currentevent", which depends on the menu having been invoked from an event manager (started with "forkeventmgr"). The event manager leaves the event on the stack for "currentevent" to find later. Unfortunitly, the X10 demo uses the older menu package, and does its own event handling to pop up its menu, instead of using an event manager, so "currentevent" loses. As long as currentcursorlocation returns the present cursor location as opposed to the location of the cursor at the last event delivered, the code has to look at the actual button event to get the correct location to center the menu. This is crucial for mouse-ahead to work properly. (On a related topic, "setcursorlocation" is broken in NeWS 1.0, so the piemenu.ps I've distributed does not "do the right thing" near the screen edge. "The right thing" is to move the cursor by the same offset as the menu must be moved to fit completely on the screen. I'm using "getcursorlocation", adding the offset, and doing a "setcursorlocation" to move cursor by the appropriate offset. Unfortunitly, next time you move the mouse, it jumps back to where it was before!) -Don