morreale@laplata.scd.ucar.edu (11/28/90)
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 \ Ctrl<KeyDown>M: set() notify() \n \ Ctrl<KeyUp>M: 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: Ctrl<Key>M: 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