Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!rochester!udel!princeton!phoenix!ssroy From: ssroy@phoenix.Princeton.EDU (Steve Scot Roy) Newsgroups: comp.windows.x Subject: HP text widget Message-ID: <6858@phoenix.Princeton.EDU> Date: 6 Mar 89 19:49:29 GMT Organization: Princeton University, NJ Lines: 63 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 am using vanilla X11 and Hp widgets on a Sun 3/160 running version 3.?, patches 1-8 for X11 and a set of patches for the widgets that claim to make it compatible with X11. I don't remember the origin of those patches, but they came off the net into a file called Xw.R3fix.tar. Everything compiled without errors. Also, the programs in the test directory do not all compile, and the ones that compile do not all run. Several complain about missing a routine XtGetCursor, several die on execution with a Segmentation Violation when the cursor moves into the window. All of the major problems I can remember for these tests seem to deal in some way with the cursor. Also, the code in the Xt directory in the Xhp distribution will not compile. Is it for release 2 of X? Has anyone else had these problems? Is there a new version or bug fixes around? Should I look to Xt or to Xw for the problems? ssr@courant.princeton.edu Here is the code, it is obviously hacked from one of examples. #include #include #include #include #include static char default_value[] = "This is a\ntest. If this\nhad been an actual\nemergency..."; main(argc, argv) unsigned int argc; char **argv; { static Arg arglist[] = { {XtNeditType, (XtArgVal) XwtextEdit}, }; Widget toplevel; char *index(); toplevel = XtInitialize("textTest", "Demo", NULL, 0, &argc, argv); XtCreateManagedWidget( argv[0], XwtextEditWidgetClass, toplevel, arglist, XtNumber(arglist) ); XtRealizeWidget(toplevel); XtMainLoop(); }