Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
Hi, anyone got examples of doing keyboard IO using XLIB only, I have looked in most conferences that cover X and DECW but have only found CYCLE.C (which isn't quite what I want), and Toolkit examples. My customer is writing an application in straight XLIB (no toolkit at all) and is finding it hard to get text input from the keyboard. All the examples we provide with V5.1 use the toolkit. Any help/pointers appreciated. Thank's Rob
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1377.1 | XLookupString | PRNSYS::LOMICKAJ | Jeff Lomicka | Wed Sep 06 1989 11:51 | 16 |
The general idea is like this: switch( event.type) { case KeyPress: l = XLookupString( &event, keybuf, 9, &ks, &cs); for( c=0; c<l; c++) { /* Put each character in key translation */ putchar( keybuf[ c]); } return; } Function keys and other non-graphic keys are handled slightly differently. | |||||
1377.2 | Thankyou | GIDDAY::OMELEY | Rob O'Meley, CSC Sydney | Tue Sep 12 1989 19:48 | 8 |
Jeff, thank's for the info, works great. Customer now pointed in the right direction and is happy... Rob |