Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!mcsun!ukc!stl!siesoft!stuart From: stuart@siesoft.co.uk (Stuart Hood) Newsgroups: comp.windows.x.motif Subject: Using the return key for traversal? Summary: Help wanted on how to traverse using the return key Keywords: Help, Traversal Message-ID: <1991Feb12.113638.5936@siesoft.co.uk> Date: 12 Feb 91 11:36:38 GMT Sender: usenet@siesoft.co.uk (NNTP Poster) Distribution: comp Organization: Siemens-Nixdorf Systems Development Group, UK Lines: 25 Hardware: Siemens WX200. Software: SCO Development Kit (Motif 1.0, X11 release 3). I have a main window with two child, text widgets. The main window is a tab group so that the user may use the cursor up and down keys to navigate between the two text objects. I would like somehow to have the return key behave like the cursor down key, i.e. if the user hits return then it navigates to the next text object as if they had pressed the cursor down key. I could add an activate callback to each widget and then navigate to the desired widget using _XmGrabTheFocus() but this seems a little messy. I would be happier using XmProcessTraversal but I do not have Motif 1.1. I would be grateful to anyone who can come up with a cleaner method of doing this. Stuart. - -- S I E M E N S Stuart Hood 65-73 Crockhamwell Road, Woodley, Berkshire, UK ------------- Phone: + 44-734-691994 Email: stuart@siesoft.co.uk N I X D O R F The trouble with everyone, is that they generalise too much