Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucrmath!maris.ucr.edu From: bball@maris.ucr.edu (alvaro monge) Newsgroups: comp.windows.x Subject: Using a Callback to Get the character entered in a Text Widget Message-ID: <11525@ucrmath.ucr.edu> Date: 30 Jan 91 04:42:40 GMT Sender: news@ucrmath.ucr.edu Distribution: usa Organization: University of California, Riverside Lines: 17 I am trying to get the character that the user enters while in an Athena Text Widget. The problem is that the callback routine is called before the widget is updated with the new character. That is the resource XtNstring (which holds the text field of the widget) in the text widget is not updated with the new character just entered. I want to know what character the user typed in so that I could check whether it was a digit or not. Unless I have this character in my callback routine there is no way of doing that. What am I doing wrong? i.e. is it a STANDARD behavior that the callback routines are called BEFORE the widget is updated upon the user entering text?? Any hints....suggestions.....HELP!!!! Al bball@ucrmath.ucr.edu