Path: utzoo!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!ukma!usenet.ins.cwru.edu!eagle!data.nas.nasa.gov!mustang!nntp-server.caltech.edu!nntp-server.caltech.edu!mazer From: mazer@asterix.asterix.cns.caltech.edu (Jamie Mazer) Newsgroups: comp.windows.x Subject: Silly questions? Message-ID: Date: 15 Mar 91 02:43:57 GMT Sender: news@nntp-server.caltech.edu Distribution: usa Organization: Division of Biology, Caltech Lines: 33 Sorry if these are silly questions, but they've been bugging me for a while... I've written about 17000 lines of a X-based appl, much of it, using along of X features, but I still haven't figured how to do these things: 1. It seems that the XtNx and XtNy values are cached in the widget structure and not always updated when the window is moved (this is for the toplevel window returned by XtInitialize). So, when I popup a dialog box in the center of the application window, determined using the XtNx and XtNy props, the box is always centered on where the window was first positioned, not where it is now. The same thing holds for XtTranslateCoords(). So, is this a bug in my toolkit (the R3 libs supplied with Ultrix 4.0 on a DECstation 50000/200)? or a feature? If the latter, what's the correct way to determine the current window position? (Note: I get the same effect on other R3 systems as well). 2. Can anyone point me to an R3 application that uses accelerators or perhaps some demo code? I'd like to be able to have the user be able to define keystrokes to simulate commandWidget presses, which seems to be the purpose of accelerators, no? I haven't been able to coerce the docs I have into working code to date. Replies to me, please. No bashing for still using R3 accepted! It's not my decision, it's gotta run on a platform where we only have R3 (masscomp/concurrent's RTU, to be exact). Thanks a lot, /Jamie -- / mazer@asterix.cns.caltech.edu \/ [Caltech] ... science steals your soul, \ \ JMazer@CALTECH.BITNET /\ don't come here unless you have to. /