Xref: utzoo comp.windows.x:32632 comp.windows.x.motif:1904 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!kodak!uupsi!sunic!dkuug!modulex!bni From: bni@modulex.dk (Bent Nielsen) Newsgroups: comp.windows.x,comp.windows.x.motif Subject: Translations, problem with. Keywords: translations Message-ID: <716@modulex.dk> Date: 12 Feb 91 18:51:41 GMT Organization: A/S MODULEX, Copenhagen, Denmark Lines: 55 Hi netlanders, Can anyone help me with a translation problem. I am running X11R4 patchlevel 18 and Motif 1.1 on DECstation 2100 and 3100. I want the following actions on a widget: 1) when button 1 is pressed 2) when button 1 is pressed and moved 3) when button 1 is released 4) when button 1 is pressed two or more time (double click) 5) when button 1 is released two or more time (double click) 6) and all motions Actions 1, 2, 3 and 6 is working when I use the following translation: static char defaultTranslations[] = "\043override\n\ : ButtonDown()\n\ : ButtonMotion()\n\ : ButtonUp()\n\ : ButtonMotionAll()\n\ "; but when I use the translation shown below only action 1, 4 and 5 is working correctly. Unless I press button 1 outside the widget and then release it inside, action 3 and 6 isn't working. (I will get action 3 when releasing and action 6 is then working). Action 2 will never work. static char defaultTranslations[] = "\043override\n\ : ButtonDown()\n\ : ButtonMotion()\n\ : ButtonUp()\n\ (2+): ButtonDoubleClickDown()\n\ (2+): ButtonDoubleClickUp()\n\ : ButtonMotionAll()\n\ "; I know about event handlers, but I would like to use translations instead, if that's possible. -- Bent Nielsen A/S MODULEX Phone: +45 44 53 30 11 Lyskaer 15 Telefax: +45 44 53 30 74 DK-2730 Herlev Denmark