Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hplabsz!mayer From: mayer@hplabsz.HPL.HP.COM (Niels Mayer) Newsgroups: comp.windows.x Subject: Re: HP text widget Message-ID: <3032@hplabsz.HPL.HP.COM> Date: 7 Mar 89 05:55:55 GMT References: <6858@phoenix.Princeton.EDU> Reply-To: mayer@hplabs.hp.com (Niels Mayer) Organization: Hewlett-Packard Labs, Software Technology Lab, Palo Alto, CA. Lines: 55 Summary: Expires: Sender: Followup-To: In article <6858@phoenix.Princeton.EDU> ssroy@phoenix.Princeton.EDU (Steve Scot Roy) writes: >When I try to use the HP text widget I get a problem that I do not >understand. > >I can put it on the screen and use it with no problems save two. > >The first, and more annoying, is that the keys 'i' and 'd' seem to be >mapped to carriage return and delete respectively. > >Second, the caret leaves residues on the left hand edge. I've noticed the same problems in my applications. I've noticed that the problem goes away if I relink my program with an X11r2 libX11.a. You can also get rid of the problem by changing the defaultTextEditTranslations table in Xw/TextEdit.c or override them via .Xdefaults. I guess that suggests that things have changed in the translation names between r2 and r3. I have a partial clue: from TextEdit.c status --------------- ----------- InsertLine can't find it in r3 DeleteChar changed to Delete (?) What's going on here? I'm so confused! Where's all this documented? Help! I haven't had the time or desire to look into this in more detail... -- Niels. PS: While we're at it, there's also a missing element in the TextEdit class record declaration: *** TextEdit.c Fri Mar 3 14:14:11 1989 --- TextEdit.c.patched Tue Feb 28 21:15:51 1989 *************** *** 2448,2456 /* version */ XtVersion, /* callback_private */ NULL, /* tm_table */ defaultTextEditTranslations, ! /* query_geometry */ NULL, ! /* display_accel */ XtInheritDisplayAccelerator, ! /* extension */ NULL }, { /* XwPrimitive fields */ --- 2448,2455 ----- /* version */ XtVersion, /* callback_private */ NULL, /* tm_table */ defaultTextEditTranslations, ! /* display_accelerator */ XtInheritDisplayAccelerator, ! /* extension */ NULL }, { /* XwPrimitive fields */