home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8776 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  2.1 KB

  1. Path: sparky!uunet!psinntp!internet!sbi!pivot-sts!rann!ray
  2. From: ray@rann.sbi.com (Raymond Blum)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Focus and callbacks
  5. Message-ID: <1424@pivot-sts.sbi.com>
  6. Date: 22 Jan 93 22:29:52 GMT
  7. Sender: news@pivot-sts.sbi.com
  8. Reply-To: ray@rann.sbi.com
  9. Organization: Salomon Inc.
  10. Lines: 36
  11. Nntp-Posting-Host: rann
  12.  
  13. clicks in one of the text widgets, I want to force validation of the current
  14. edits in the matrixWidget. Problem is, there is no callback invoked in the
  15. matrixWidget for losingFocus. So....I am front-ending my focusCallbacks 
  16. and activateCallBacks for the text and pushbutton widgets with:
  17.  
  18.    if (matrixCellDirty) {
  19.     XmProcessTraversal(widget_bucket[k_matrixWidget],XmTRAVERSE_CURRENT);
  20.     XbaeMatrixCommitEdit(widget_bucket[k_matrixWidget],True);
  21.     return;
  22.    }
  23.  
  24.   Well, what I end up with is some VERY strange behavior. When I click in
  25. text widget 'A', there are blinking cursors in BOTH the matrix widget and 
  26. text widget 'A'. The typing goes to the matrixWidget. If I then click in 
  27. text widget 'A' again, the focusCallback for 'A' is NOT invoked (??it already HAD the focus, sort of?) Is 'stealing' the focus back like this not allowed?
  28.   What obvious thing am I missing here? If this is a FAQ, please forgive and
  29. tell me so.
  30.   Thanks
  31. ---Raymond 
  32. matrixWidget, but there is still a text cursor 
  33. ---
  34. -------------------------------------------------------
  35. -----                               __   ___       ----
  36. -----                        . o  _/  \_/   \_     ----
  37. ----                  \\\\\\\    O   Hey!     \    ----
  38. ----                 \\\    \\   | why AM I    |   ----
  39. ----                  \\ O O     \_ smiling? _/    ----
  40. ----                               \__/\____/      ----
  41. ----                     \_/                       ----
  42. ----                                               ----
  43. ----   Raymond Blum                                ----
  44. ----   ray@rann.sbi.com                            ----
  45. ----   (201) 896-7594                              ----
  46.  
  47.   Of course these are MY opinions! Whattya think, my EMPLOYER 
  48.   could've thought this stuff up?
  49.