[comp.windows.x] EXTRACTING TRANSLATION TABLE

ISSLCK@NUSVM.BITNET (Law Chee Keong) (10/25/89)

Does anyone know how to extract a translations table from a widget.

This is what I want to do:
Given an arbitrary widget, I want to temporarily UnInstall all of its
translations. But after a while, I want to install all the translations
back to the widget. Problem is I must find a way to extract the table
from a widget, and it appears that it is just not possible to do so.
Anyone have ideas??

C.K. Law
ISS-NUS

converse@EXPO.LCS.MIT.EDU (Donna Converse) (10/26/89)

> Given an arbitrary widget, I want to temporarily UnInstall all of its
> translations. But after a while, I want to install all the translations
> back to the widget. 

If your widget has a translations resource, it can be done.
Use XtGetValues to get the existing translation table, save it,
use XtUninstallTranslations to remove all of the translations,
and when you want to restore the translations, use XtSetValues.


Donna Converse
converse@expo.lcs.mit.edu