XmTextField

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

Anonymous's picture

XmTextField

try

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

change the values as you change focus


Anonymous

Anonymous's picture

XmTextField

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

Anonymous's picture

XmTextField

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