Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!ncar!csn!boulder!news From: watermaa@cs.Colorado.EDU (Alexander S. Waterman) Newsgroups: comp.windows.x Subject: Dialog Translations Message-ID: <1991Apr29.173747.29152@colorado.edu> Date: 29 Apr 91 17:37:47 GMT Sender: news@colorado.edu (The Daily Planet) Distribution: usa Organization: University of Colorado, Boulder, Department of Computer Science Lines: 35 Originator: watermaa@alpo.colorado.edu Nntp-Posting-Host: alpo.colorado.edu Guys, Hello, I have a question concerning binding actions to widgets. I have an action I want to bind to a dialog widget, I have the translation declared as: (A) static String trans = "Return: testcall()\n"; and the action declared as: XtActionsRec actionTable[] = { {"test", test}, }; After my calls to ( par_tr_tab = XtParseTranslationTable(trans)) and XtOverrideTranslations(mydialogbox, par_tr_tab), I add the action with XtAddACtions(actionTable, XtNumber(actionTable)); and this DOESN'T work. I don't have a problem if instead of declaring as in (A) I set the callback as a fallback resource with the line: "*Dialog*translations: #override \\n Return: testcall()", BUT I don't want to bind this function to ALL instances of the dialog widget. I just want the binding to specific widgets. Does anyone have a solution? I would appreciate any help!! Thanks in advance. - Alexander S. Waterman watermaa@cs.colorado.edu