Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!laplata.scd.ucar.edu!morreale From: morreale@laplata.scd.ucar.edu Newsgroups: comp.windows.x Subject: Resolving translation/accelerator conflicts Message-ID: <9302@ncar.ucar.edu> Date: 27 Nov 90 19:17:18 GMT Sender: news@ncar.ucar.edu Reply-To: morreale@laplata.scd.ucar.edu () Distribution: usa Organization: Scientific Computing Division/NCAR, Boulder, CO Lines: 44 I have a question(s) concerning conflicting translations within an application I am writing.... My knowledge of defining translations is (as you will infer..) limited so I attempt to make my problem(s)/queries as explicit as possible. To make this as brief as possible, consider a large box widget containing a command widget and a text widget. (my app actually has over a dozen or more of each in the box...) I define an accelerator for the *command* using the following resources: *mail.accelerators: #override \n \ CtrlM: set() notify() \n \ CtrlM: reset() All is fine except (and this is the problem) when the pointer is in the *text* widget. By default there is a translation for the text widget of: CtrlM: newline() \n\ Obviously I have a conflict as I really want my accelerators to override the default text translation. I have the following questions: 1) How do I *remove* a single translation from a text widget? (do I do this by #replace of all the translations that I want?, I really want *most* of the default translations for the text widgets...) 2) Does an accelerator table override a translation table in the same widget? (In which case I could define an accelerator table for the text wigdets which would override the translation tables...) Thanks for any and all help, -PWM -- ------------------------------------------------------------------ Peter W. Morreale email: morreale@ncar.ucar.edu Nat'l Center for Atmos Research voice: (303) 497-1293 Scientific Computing Division