home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:16574 comp.windows.x.motif:6155
- Path: sparky!uunet!haven.umd.edu!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!sobol
- From: sobol@cathedral.cerc.wvu.wvnet.edu (Michael Sobolewski)
- Newsgroups: comp.windows.x,comp.windows.x.motif
- Subject: X Error: BadCursor
- Keywords: motif, X11
- Message-ID: <3537@babcock.cerc.wvu.wvnet.edu>
- Date: 11 Sep 92 16:25:05 GMT
- Sender: news@cerc.wvu.wvnet.edu
- Followup-To: poster
- Lines: 42
-
- Why the following method (modified Young's function):
-
- void TraverserWindow::setBusyCursor()
- {
- // Do nothing if the widget has not been realized
-
- if ( XtIsRealized ( _w ) )
- {
- // If this is the first time, create the busy cursor
-
- if ( !_busyCursor )
- _busyCursor = XCreateFontCursor ( XtDisplay ( _w ),
- XC_watch );
-
- // Install the busy cursor for this window's top-level shell
-
- XDefineCursor ( XtDisplay ( _w ),
- XtWindow ( _w ),
- _busyCursor );
- XmUpdateDisplay(_w);
- }
- }
-
-
- where _w is a popupshell, causes the error:
-
- X Error: BadCursor
- Request Major code 2 ()
- ResourceID 0x2
- Error Serial #1840
- Current Serial #1841
-
- I appreciate any suggestions you would be able to e-mail to me.
-
- Mike
-
- -------------------------------------------------------------------------------
- Michael Sobolewski How not to get lost in the complexities of our
- CERC/WVU, Drawer 2000 own making is still computing's core challenge.
- Morgantown, WV 26506 Edsger Dijsktra
- office: (304) 293-6961
- e-mail: sobol@cerc.wvu.wvnet.edu
-