XmTextField

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
XmTextField

Submitted by Anonymous on Wed, 06/21/2000 - 12:50. Developers
Hallo,
I`m a bit new to this motif lark. I have some XmTextField objects on an XmForm, but each one has a `greyed out` cursor displayed in it (which looks nasty). The current one has a flashing, solid cursor (Nice...).
I have access to the Uil and X resources file, so how can I get rid of the cursor in all but the current field?

Thanks in advance,

- Pete

Anonymous

try

XmText only XmNautoShowCursorPosition, FALSE,
XmText and XmTextField XmNcursorPositionVisible, FALSE,

change the values as you change focus

Anonymous

Nope. I have this problem too. Tried flipping XmNcursorPositionVisible when getting/losing focus, tried extra XmTextSetString() as per earlier post... still when I first click in an XmText, there is an ugly gray bar on the far left.

Anonymous

Hallo,
I added code to change XmNcursorPositionVisible in the focus callbacks. It worked for the focus callback, but not for losing focus, so I just put the code to make it invisible in the focus callback of all the other widgets. It works most of the time which is close enough for the time being. I`m using Lesstif, don`t know if that makes any difference.

- Pete