Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!leah!rpi!batcomputer!cornell!rochester!pt.cs.cmu.edu!edrc.cmu.edu!snl From: snl@edrc.cmu.edu (Sean Levy) Newsgroups: comp.windows.x Subject: Having trouble using XtAugmentTranslations() Message-ID: <5206@pt.cs.cmu.edu> Date: 13 Jun 89 22:23:33 GMT Reply-To: snl@edrc.cmu.edu (Sean Levy) Organization: Carnegie-Mellon University, CS/RI Lines: 39 Keywords: I've implimented a simple run-time widget resource editor. I have things set up so that you can register an action called ResEdit that takes two parameters: the name of a shell to create the ResEdit popup under (typically the name of your top-level shell) and an optional font name to use in ResEdit. I'm able to register the action without problem, but I'm having trouble getting it invoked by the translation manager. I have a translation: static String my_translations = "Ctrl : ResEdit(foo, 9x15)"; (for instance). After I call XtInitialize() and XtAppAddActions(), I create a popup shell with a box in it, into which I stick various widgets (one of my own devising, a couple Athena Label and Command widgets). After every XtCreateManagedWidget(), I immediately do an XtAugmentTranslations() with my translations (which compiled fine, I believe -- how do you tell? the type XtTranslations is opaque...). All of this augmenting is, however, to no avail, as the Ctrl/Button2Down sequence does not even call have the desired effect (ResEdit never even gets called). I've tried various other sequences (Meta-E, various modifiers on various buttonpresses), all with no effect. As it stands, I have to wire a Command widget to a callback that explicitly calls the resource editor proper on a particular widget (well, I _could_ play with that), which is grody and surely uneccessary... What am I doing wrong? TIA, sean levy - research programmer / engineering design research center / cmu internet: snl@edrc.cmu.edu bitnet: snl@edrc.cmu.edu%CMCCVMA uucp: ...!harvard!cs.cmu.edu!snl 2wire: 412 268 2257 dirt: edrc / cmu / doherty hall a219 / pittsburgh pa 15213 -- sean levy - research programmer / engineering design research center / cmu internet: snl@edrc.cmu.edu bitnet: snl@edrc.cmu.edu%CMCCVMA uucp: ...!harvard!cs.cmu.edu!snl 2wire: 412 268 2257 dirt: edrc / cmu / doherty hall a219 / pittsburgh pa 15213 --