home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / x / 16574 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.6 KB

  1. Xref: sparky comp.windows.x:16574 comp.windows.x.motif:6155
  2. Path: sparky!uunet!haven.umd.edu!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!sobol
  3. From: sobol@cathedral.cerc.wvu.wvnet.edu (Michael Sobolewski)
  4. Newsgroups: comp.windows.x,comp.windows.x.motif
  5. Subject: X Error:  BadCursor
  6. Keywords: motif, X11
  7. Message-ID: <3537@babcock.cerc.wvu.wvnet.edu>
  8. Date: 11 Sep 92 16:25:05 GMT
  9. Sender: news@cerc.wvu.wvnet.edu
  10. Followup-To: poster
  11. Lines: 42
  12.  
  13. Why the following method (modified Young's function):
  14.  
  15. void TraverserWindow::setBusyCursor()
  16. {
  17.   // Do nothing if the widget has not been realized
  18.  
  19.     if ( XtIsRealized ( _w ) )
  20.       {
  21.         // If this is the first time, create the busy cursor
  22.  
  23.         if ( !_busyCursor )
  24.             _busyCursor = XCreateFontCursor ( XtDisplay ( _w ),
  25.                                               XC_watch );
  26.  
  27.         // Install the busy cursor for this window's top-level shell
  28.  
  29.         XDefineCursor ( XtDisplay ( _w ),
  30.                         XtWindow ( _w ),
  31.                         _busyCursor );
  32.         XmUpdateDisplay(_w);
  33.       }
  34.   }
  35.  
  36.  
  37. where _w is a popupshell, causes the error:
  38.  
  39. X Error:  BadCursor
  40.   Request Major code 2 ()
  41.   ResourceID 0x2
  42.   Error Serial #1840
  43.   Current Serial #1841
  44.  
  45. I appreciate any suggestions you would be able to e-mail to me.
  46.  
  47. Mike
  48.  
  49. -------------------------------------------------------------------------------
  50. Michael Sobolewski              How not to get lost in the complexities of our
  51. CERC/WVU, Drawer 2000           own making is still computing's core challenge.
  52. Morgantown, WV 26506                                           Edsger Dijsktra
  53. office: (304) 293-6961
  54. e-mail: sobol@cerc.wvu.wvnet.edu
  55.