irf@kuling.UUCP (Bo Thide') (10/25/89)
I am working on an HP Widget based package on my 9000/370, trying to modify the translation table for a TextEdit widget. I would like to change <Key>Return from the default newline() to execute() in my program. Here is how I do it: XtTranslations transtable; static XtActionsRec actionsTable[] = { {"execute", execute}, }; static char defaultTranslations[] = "Ctrl<Key>J: execute()\n\ Ctrl<Key>O: execute()\n\ Ctrl<Key>M: execute()\n\ <Key>Return: execute()"; Code containing this code does not compile on the 370 (HP-UX 6.5). A simple 'nm x /usr/lib/libXw.a' on the 370 shows that 'Execute' is missing from that lib. Defining the same thing in an ../app_defaults file seems to work though. What is wrong here? My code or the lib? Any help would be much appreciated. Bo