[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

3329.0. "(More) accelerator problems" by ZUDEV1::MATTERSON (Andy Matterson EIS Switzerland) Tue Sep 11 1990 03:43

    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.RTitleUserPersonal
Name
DateLines
3329.1Aha! I got it to work!ZUDEV1::MATTERSONAndy Matterson EIS SwitzerlandTue Sep 11 1990 04:2310
    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. #augmentOXNARD::KLEEKen LeeTue Sep 11 1990 15:127
    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