Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!lll-winken!lll-crg.llnl.gov From: chapman@lll-crg.llnl.gov (Carol Chapman) Newsgroups: comp.windows.x.motif,ba.windows.x,llnl.x Subject: XmText problem/question re. cursor movement Keywords: Motif 1.1, C, XmText, cursor positioning Message-ID: <96206@lll-winken.LLNL.GOV> Date: 25 Apr 91 17:51:48 GMT Sender: usenet@lll-winken.LLNL.GOV Followup-To: comp.windows.x.motif Organization: Livermore National Laboratory Lines: 32 Nntp-Posting-Host: lll-crg.llnl.gov I am using Motif 1.1 and C. I have a formdialog widget with a number of children, including 3 XmText widgets. The text widgets were all created in UIL code and are basically identical. They are not behaving the way I would expect. When the formdialog appears, only the middle text widget shows a cursor. It is a carrot-shaped cursor (^). If I click in any of the text widgets, the cursor moves to that location, but if I enter text, the text is forced to the beginning of the text widget (position 0). I used XmTextSetString to put initial values into each of the widgets, and I read that that sets the insertion point to position 0, but once the user clicks somewhere else, shouldn't the cursor change to a text cursor (I) and the text be inserted there automatically? A co-worker has a small program somewhat similar to mine, but his works as expected. We compared our code searching for differences, but don't see anything that would seem to account for this. I figure I must have some resource set incorrectly somewhere but I don't see it. At this time, the only "callback" I've set is MrmNcreateCallback. The resources set for each text widget are: x, y, width, height, topAttachment, leftAttachment, leftOffset, topOffset, resizeWidth (True) maxLength, autoShowCursorPosition (True), columns, cursorPositionVisible (True), editable (True), editMode (SINGLE_LINE_EDIT). If anyone has any ideas as to what's wrong, I'd love to hear from you! thanx, carol Carol Chapman Tel. (415) 423-7876 Livermore National Laboratory NEW --> chapman@.llnl.gov P. O. Box 808, L-572 "Are you in charge here?" Livermore, CA 94550 "No, but I'm full of ideas!" -- Dr. Who