[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
| 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 | 
568.0. "Key translation table" by VINNYS::BPUISHYS (Bob Puishys) Mon Apr 10 1989 13:32
I am trying to override a key translation in a simple text widget.
This example will override the <cr> and call the action routine,
but I can't seem to get it to pass a value to the routine.
Can someone tell me what I could be doing wrong!
code:
XtActionsRec    actions[] =
                    {
                      "ReturnPressed", (XtActionProc)edit_runframes_activate
                    };
String          RT = {
                       "<KeyPress>0xFF0D : ReturnPressed(number)"
                      };
      XtAddActions(actions,XtNumber(actions));
      XtOverrideTranslations(widget_array[k_edit_urfprd_textbox],
                           XtParseTranslationTable( RT));
Thanks
Bob Puishys
| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 568.1 | anyone out there! | HPSCAD::BPUISHYS | Bob Puishys | Wed Apr 12 1989 11:19 | 6 | 
|  |     Come on ..  SOMEONE must have done this or wants to do it..
    How does the login prompt do it?
    
    Bob Puishys
    
 |