Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore-2!bellcore!cellar!aw From: aw@cellar.bae.bellcore.com (Andrew Wason) Newsgroups: comp.windows.x.motif Subject: XmPushButton translations Message-ID: <25610@bellcore.bellcore.com> Date: 23 Jul 90 20:13:26 GMT Sender: news@bellcore.bellcore.com Reply-To: aw@cellar.bae.bellcore.com Organization: Bell Communications Research Lines: 34 [Sparc 1+, SunOS 4.1, ICS Motif 1.0, X11R4 server] I'm having trouble specifying translations for the XmPushButton widget. If I specify them as #augment or #override, they instead seem to #replace the PushButtons default translations. Here's a simple example using Mri from the Widget Creation Library (wcl): Mri.wcChildren: but *but.wcClass: xmPushButtonWidgetClass *but.labelString: Push Me *but.activateCallback: WcSetValueCB(*but.labelString: Activate!) *but.translations: #augment \n\ a: WcSetValueACT("*but.labelString: Action!") When I type 'a' in the button, its label correctly changes to "Action!", but the buttons default translations are gone. Btn1Down does not Arm() the button and Btn1Up does not Activate() and Disarm(). It doesn't matter what translations I specify, the default translations go away. Even this causes the problem: *but.translations: #augment The problem isn't limited to wcl, I'm just using wcl as an example because it is concise. Has anyone else seen this or am I doing something wrong? Thanks, Andrew -------------------------------------------------------------------------------- Andrew Wason Bell Communications Research aw@cellar.bae.bellcore.com Piscataway, NJ bellcore!cellar!aw