Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!information-systems.east-anglia.ac.uk!gjr From: gjr@information-systems.east-anglia.ac.uk Newsgroups: comp.windows.x Subject: Translations for Xaw scrollbar widgets Message-ID: <15152.9104090800@sys.uea.ac.uk> Date: 9 Apr 91 09:02:15 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 33 I've been trying to get the Athena scrollbar widget to operate with a one button mouse (yes, I'm using a Mac). Using a simple test program with the following translations everything works as I want. *Scrollbar.Translations: #override \n\ !Shift: StartScroll(Backward) \n\ !Ctrl: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\ !Ctrl: MoveThumb() NotifyThumb() But, when I put *VT100 in front of that and try it for an xterm, the xterm main menu pops up on Ctrl, no matter where the pointer is in the xterm (e.g. over the scrollbar). If I force the VT100 to ignore the Ctrl event then with this condition nothing happens and no event reaches the scrollbar. Is there a way of getting the above translations to work with xterm or should I seek another method. I tried it briefly with accelerators as well but also had no luck. Thanks, Graham. p.s. What I really wanted was shift btn1down to scroll back, and double click btn1down to begin continuous scrolling, but the scrollbar gets a bit confused. ------------ Graham Reynolds JANET: gjr@uk.ac.uea.sys Senior Research Associate Internet: gjr%sys.uea.ac.uk@nsfnet-relay.ac.uk School of Info. Systems UUCP: ...!mcvax!ukc!uea.sys!gjr University of East Anglia BITNET: gjr%uk.ac.uea.sys@UKACRL Norwich, NR4 7TJ, UK. Tel: +44-603-592319, Fax: +44-603-507720