home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!noc.near.net!inmet!reatta!mep
- From: mep@reatta.camb.inmet.com (Mark Polhamus)
- Subject: ValueChangedCallback & event (Text)
- Message-ID: <1992Dec23.162657.19881@inmet.camb.inmet.com>
- Summary: event not set on paste
- Keywords: Text XmTextVerifyCallbackStruct ValueChangedCallback
- Sender: news@inmet.camb.inmet.com
- Nntp-Posting-Host: reatta
- Organization: Intermetrics Inc.
- Date: Wed, 23 Dec 1992 16:26:57 GMT
- Lines: 20
-
- I need to know when a user has modified a text widget, so I use a
- ValueChangedCallback (reason XmCR_VALUE_CHANGED). If the
- XmTextVerifyCallbackStruct's event field is NULL, I assume that the
- change did not occur because of the user's action, but because my
- program called XmTextSetString().
-
- This works in most cases, but I've found that the event field is NULL
- when the user pastes into the text widget.
-
- Is this a bug? It happens on both sun4 and HP, Motif 1.1. I would be
- interested in pointers to bug reports - or a specification that agrees
- with the current implementation.
-
- I really wish this worked - I'll have to write some ugly hacks to work
- around it.
-
-
- -- Mark Polhamus
- -- Intermetrics, Inc.
- -- mep@inmet.inmet.com
-