Path: utzoo!attcan!uunet!aspect!jeff From: jeff@aspect.UUCP (Jeff Rosler) Newsgroups: comp.windows.x.motif Subject: Re: XmPushButton translations Keywords: translations Message-ID: <3198@aspect.UUCP> Date: 24 Jul 90 16:32:35 GMT Organization: Aspect Telecommunications, San Jose, Ca Lines: 28 >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): >... You're not doing anything wrong. You just encountered a nasty bug with translations. This bug is not limited to the PushButton widget class, either. I posted a response to another question about this last week and have sent a defect report. I only posted on motif-talk@osf.org because that is where the question originated. In the future, I'll make sure I post to this group also. The problem is in the Initialize method of the XmPushButton widget. If a translation resource is specified for the widget, neither the Primitive nor the PushButton translations are merged with your specific translations. I don't know if this is fixed for 1.1 or not. The only work around that I can suggest is to specify the default translations as part of your translation table. A list of the default translations for the PushButton widget can be found in the Motif Reference Manual. Jeff Rosler Aspect Telecommunications 1730 Fox Drive San Jose, CA 95131-2312 uunet!aspect!jeff (408) 441-2420