| Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
| Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
| Moderator: | STAR::VATNE |
| Created: | Mon Oct 30 1989 |
| Last Modified: | Mon Dec 31 1990 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 3726 |
| Total number of notes: | 19516 |
I have this problem with accelerators...
I have a popup attached db, with several adbs as children. In one of
these adbs is a simple_text widget; in another is my ok button, which
is set up as the default button for the whole popup.
I use XtInstalAllAccelerators with the popup adb as source for all adbs
and for the simple_text.
And lo and behold, <Return> gets me the ok button as desired, but I
can't actually write anything into the simple_text despite the fact it
has input focus (the cursor blinks).
What am I doing wrong??
Andy M.
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 3329.1 | Aha! I got it to work! | ZUDEV1::MATTERSON | Andy Matterson EIS Switzerland | Tue Sep 11 1990 03:23 | 10 |
How embarrassing!!
As sson as I had entered .0 I went and tried something else and it
worked completely as it should...
For those lesser mortals such as me who have problems with these
things: You have to put the "#override" directive in the translation
table for the button_accelerator.
It's that simple - but don't ask me why!
| |||||
| 3329.2 | #override vs. #augment | OXNARD::KLEE | Ken Lee | Tue Sep 11 1990 14:12 | 7 |
Your choices for accelerator priority are #augment and #override.
#augment means that the accelerator is only used if there is no
existing translation for that event. #override means always use the
accelerator, ignoring previous translations. The default is #augment.
Ken
| |||||