Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmtranslatekey(3x) [osf1 man page]

XmTranslateKey(3X)														XmTranslateKey(3X)

NAME
XmTranslateKey - The default keycode-to-keysym translator SYNOPSIS
#include <Xm/Xm.h> void XmTranslateKey (display, keycode, modifiers, modifiers_return, keysym_return) Display *display; KeyCode keycode; Modifiers modifiers; Modifiers *modifiers_return; KeySym *keysym_return; DESCRIPTION
XmTranslateKey is the default XtKeyProc translation procedure for Motif applications. The function takes a keycode and modifiers and returns the corresponding keysym. XmTranslateKey serves two main purposes: new translators with expanded functionality can call it to get the default Motif keycode-to-keysym translation in addition to whatever they add, and so that the default translator can be reinstalled. This function enables keysyms defined by the Motif virtual bindings to be used when an application requires its own XtKeyProc to be installed. Specifies the display that the keycode is from Specifies the keycode to translate Specifies the modifier keys to be applied to the keycode Specifies a mask of the modi- fier keys actually used to generate the keysym (an AND of modifiers and any default modifiers applied by the currently registered transla- tor) Specifies a pointer to the resulting keysym SEE ALSO
VirtualBindings(3X) XmTranslateKey(3X)

Check Out this Related Man Page

XtKeyProc()															       XtKeyProc()

Name
  XtKeyProc - interface definition for keycode-to-keysym translation procedure.

Synopsis
  typedef void (*XtKeyProc)(Display *, KeyCode, Modifiers, Modifiers *,
      KeySym *);
	 Display *display;
	 KeyCode keycode;
	 Modifiers modifiers;
	 Modifiers *modifiers_return;
	 KeySym *keysym_return;

Inputs
  display   Specifies the display that the keycode is from.

  keycode   Specifies the keycode that is to be translated.

  modifiers Specifies the mask that indicates what modifier keys (Shift, Meta, Control, etc.) are pressed.

Outputs
  modifiers_return
	    Returns a mask that specifies the modifier keys that the function examined in making the conversion.

  keysym_return
	    Returns the resulting keysym.

Description
  An  XtKeyProc is registered in a call to XtSetKeyTranslator() and is invoked explicitly by a call to XtTranslateKeycode() and automatically
  by the Translation Manager in order to convert incoming keycodes to keysyms.

  An XtKeyProc must convert the keycode and modifiers into a keysym and return that keysym in keysym_return.  It should return the  modifiers
  that it considers in its translation in modifiers_return.  The value returned in this argument will be a constant for any given XtKeyProc.

  An XtKeyProc must be implemented so that multiple calls with the same display, keycode, and modifiers arguments will return the same result
  until either a new case converter (an XtCaseProc) is registered or a MappingNotify event is received.

Usage
  XtTranslateKey() is the default XtKeyProc.  It should be sufficient for all applications except those that use non-standard keysyms.

  When writing an XtKeyProc, you will probably need to call XtConvertCase(), and XtGetKeysymTable().  You may also want  to  invoke  XtTrans-
  lateKey() directly to translate the standard keysyms.

See Also
  XtConvertCase(1), XtGetKeysymTable(1), XtKeysymToKeycodeList(1), XtRegisterCaseConverter(1), XtSetKeyTranslator(1), XtTranslateKey(1),
  XtTranslateKeycode(1).

Xt - Keyboard Handling														       XtKeyProc()
Man Page

4 More Discussions You Might Find Interesting

1. Programming

Motif

Do you think that Motif programming is old...should I learn it... (3 Replies)
Discussion started by: CreamHarry
3 Replies

2. AIX

Motif on AIX and SWT

hi all, I've written a GUI application in Eclipse using SWT. It's running fine on linux(which uses GTK on x86). But when I ran the same application on AIX(which uses Motif on PPC), the GUI part is suffering. :-( The checkboxes are looking very small(like tiny dots on screen!) , spinners are... (4 Replies)
Discussion started by: v_rathor
4 Replies

3. Solaris

Motif 1.2 support on Solaris 10

Hello, I used to compile and link the code on Solaris 6 using Motif 1.2 (that used to come as part of Operating System) I would like to use the same version of Motif 1.2 for compilation and linking on Solaris 10. But Solaris 10 has Motif 2.1.0 as default. Is Motif 1.2 supported on... (0 Replies)
Discussion started by: shafi2all
0 Replies

4. Solaris

Motif 2.1 migration from Motif 1.2

An application was getting built using Motif 1.2 that used come along Solaris 6 OS for compiling and linking. Application is run using Motif 2.1 on Solaris 10 and it is working fine. Application compilation and linking is working fine on Solaris 10 with Motif 2.1.0 but running the application... (0 Replies)
Discussion started by: shafi2all
0 Replies