[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

568.0. "Key translation table" by VINNYS::BPUISHYS (Bob Puishys) Mon Apr 10 1989 17: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.RTitleUserPersonal
Name
DateLines
568.1anyone out there!HPSCAD::BPUISHYSBob PuishysWed Apr 12 1989 15:196
    Come on ..  SOMEONE must have done this or wants to do it..
    How does the login prompt do it?
    
    Bob Puishys