I-Beam in 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` I-Beam cursor displayed in it (which looks nasty). The current one has a flashing, solid I-Beam cursor (Nice...).
I have access to the Uil and X resources file, so how can I get rid of the I-Beam cursor in all but the current field?

Thanks in advance,

- Pete


Anonymous

Anonymous's picture

XmTextField cursor

I guess from the underwhelming response that nobody understands what I`m going on about (wouldn`t be the first time)
If anyone has any info to help me then please reply

- Pete


Anonymous

Anonymous's picture

XmTextField cursor

Create a callback for the losingFocusCallback resource so that when you are no longer in the text widget, it sets its cursorPositionVisible resource to false...do the opposite with the focusCallback. I found the best way to get to know Motif is to take the effort to download an eval of BX. You can see how the resources interact, and the sort of code that should be generated.


Anonymous

Anonymous's picture

XmTextField cursor

Hallo,
Cheers for that. 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