home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8407 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.8 KB  |  53 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!pan.mc.ti.com!a722756
  3. From: a722756@roper.mc.ti.com (W. Donald Rolph)
  4. Subject: changing cursors or motif widgets
  5. Message-ID: <1993Jan7.153710@roper.mc.ti.com>
  6. Originator: a722756@roper.mc.ti.com
  7. Sender: usenet@pan.mc.ti.com (USENET News System)
  8. Organization: Texas Instruments / Attleboro Mass / USA
  9. Date: Thu, 7 Jan 1993 20:37:10 GMT
  10. Lines: 41
  11.  
  12.  
  13. I am probably doing something very stupid, and this may very well be in a FAQ,
  14. although I cant seem to stumble on it.  My apologies.
  15.  
  16. I am writing a motif application using motif widgets.  I would like to change the
  17. cursor during processing to alert the user that work is underway.  If I perform
  18. the following code:
  19. ************************* 
  20. Cursor watch_cursor;
  21. /* turn on watch so the user isn't confused - this process can be time
  22.         consuming!!  */
  23. watch_cursor = XCreateFontCursor(XtDisplay(main_widget),XC_watch);
  24. XDefineCursor(XtDisplay(main_widget),XtWindow(main_widget),watch_cursor);
  25. *******************
  26. nothing happens.
  27.  
  28. If I do:
  29. ******************* 
  30. Cursor watch_cursor;
  31. /* turn on watch so the user isn't confused - this process can be time
  32.         consuming!!  */
  33. watch_cursor = XCreateFontCursor(XtDisplay(main_widget),XC_watch);
  34. XDefineCursor(XtDisplay(main_widget),XtWindow(main_widget),watch_cursor);
  35. /* this stupidity is to get around a problem in displaying the cursor*/
  36. message_box = XmCreateWarningDialog(main_widget, "Message Box",
  37.         args, argcount);
  38. *******************
  39. where message_box is never realized or managed, the cursor changes.
  40.  
  41. Can some one help an obviously confused person?
  42.  
  43. Thanks in advance.
  44.  
  45. Regards.
  46.  
  47. Don Rolph a722756@pan.mc.ti.com WD3 MS10-13 (508)-699-1263
  48. -- 
  49.  
  50. Regards.
  51.  
  52. Don Rolph  a722756@pan.mc.ti.com WD3 MS10-13 (508)-699-1263
  53.