Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.windows.x Subject: Re: Can't Override Translation Keywords: Action Procedure, Translation, Override Message-ID: <1991Jan4.160401.21666@smsc.sony.com> Date: 4 Jan 91 16:04:01 GMT References: <1113@tredysvr.Tredydev.Unisys.COM> Sender: dce@smsc.sony.com (David Elliott) Reply-To: dce@smsc.sony.com (David Elliott) Organization: Sony Microsystems, San Jose, CA Lines: 33 In article <1113@tredysvr.Tredydev.Unisys.COM>, paul@tredysvr.Tredydev.Unisys.COM (Paul Siu) writes: |> I am trying to customize a widget using the translation table. A number of |> keys refused to be change though. Let's say I want the F2 key to set off |> the button "btn", I can add this to my application resource file. |> |> *btn.translations: #override\n\ |> F2: ArmAndActivate()\n\ |> |> This works fine for the key "F2". When I press F2, the button is armed, |> and activated. When I try to use "F1" or "Delete", or "BackSpace", it |> doesn't work. Why? I'm a little confused. Are you saying that if you change the above to *btn.translations: #override\n\ Delete: ArmAndActivate()\n\ it doesn't arm and activate the button, or are you saying that after adding the above translations that the exsiting translations for F1, Delete, and BackSpace no longer work? Also, is this a customization via your .Xdefaults, or via the application's app-defaults file? If .Xdefaults, does the application already have "*btn" translations? -- ...David Elliott ...dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce ...(408)944-4073 ..."That's *Mr.* Squishy-Lips to you!"