Xref: utzoo comp.windows.x:34925 comp.windows.x.motif:2462 Newsgroups: comp.windows.x,comp.windows.x.motif Path: utzoo!utgpu!cunews!micor!esleng!yvonne From: yvonne@esleng.ocunix.on.ca (Yvonne Leduc) Subject: XmTextSetSelection Question Message-ID: <1991Apr05.211645.2406@esleng.ocunix.on.ca> Followup-To: comp.windows.x.motif Organization: Excalibur Systems Limited, Kanata, Ontario, Canada Date: Fri, 05 Apr 1991 21:16:45 GMT I have a dialog which contains several XmText widgets created in uil. What I want to do is to have the text in the widget automatically selected whenever it receives the input focus so the text can be replaced when a key is pressed. I attached a XmNfocusCallback to each text widget. The XmTextSetSelection command seems to be what I need to use. The only problem is the last parameter for XmTextSetSelection is a time value which should be the same time as the focus callback. How can I get this time value. BTW, I am using ISC System V, X11 and Motif 1.0. Thanks.