Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rs20dev!dennis From: dennis@rs20dev.UUCP (Dennis Warheit) Newsgroups: comp.windows.x.motif Subject: Forcing upper case on input(XmText) Message-ID: <195@rs20dev.UUCP> Date: 8 Jan 91 21:58:06 GMT Organization: Universal Instruments Corp., Binghamton, NY Lines: 25 I am working on an application under SCO's OpenDeskTop version of Motif 1.0. We are doing a fair amount of data entry for a database. As a part of that I am using XmText. I want to force entry of some XmText characters to upper case. I created the XmNmodifyVerifyCallback and in the callback I accessed the text to be inserted via XmTextVerifyPtr->XmTextBlock->ptr and made that text all upper case. I was able to access the text and seemed to be able to change its case but when the callback completed the original lower case text was displayed. I am left to assume that that text is a copy of the actual text to be inserted. Two questions: 1. Is my assumption about the nature of the insert text provided by the callback correct? 2. How should (can) I go about forcing the input to upper case? Thanks, Dennis Warheit dennis@rs20dev.uunet uunet!rs20dev!dennis Universal Instruments Corp