Automatic selection of text when focus is set with <TAB&g

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

Questions about motif? Contact us

1 post / 0 new
Automatic selection of text when focus is set with <TAB&g

 

Submitted by Anonymous on Thu, 04/15/2004 - 18:54. 

 

Hi all,

I have a texfield widget ( result from XmCreateTextField) . The text inside the widget should be selected (XmTextFieldSetSelection) when it gains focus from the user pressing the key (e.g.:XmProcessTraversal) but NOT when the user selects it using the mouse.

Is there any way to do this? I tried using the XmNfocusCallback to catch when the texfield does receive focus, but I can not differentiate if this is the result of key that highlighted the texfield or mouse selection from the user.

Tx for the help

Steve