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

  1. Path: sparky!uunet!math.fu-berlin.de!irz401!iki101.inf.tu-dresden.de!ihle
  2. From: ihle@iki101.inf.tu-dresden.de (Torsten Ihle)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: changing cursors or motif widgets
  5. Date: 21 Jan 1993 11:24:31 GMT
  6. Organization: Dept. of Computer Science, Technical University of Dresden, Germany
  7. Lines: 31
  8. Distribution: world
  9. Message-ID: <1jm15fINN9ha@irz401.inf.tu-dresden.de>
  10. References: <1993Jan7.153710@roper.mc.ti.com>
  11. Reply-To: ihle@iki101.inf.tu-dresden.de (Torsten Ihle)
  12. NNTP-Posting-Host: irzr27.inf.tu-dresden.de
  13.  
  14.  
  15. --
  16. In article <1993Jan7.153710@roper.mc.ti.com>, a722756@roper.mc.ti.com (W. Donald Rolph) writes:
  17.  
  18. |>I am writing a motif application using motif widgets.  I would like to change the
  19. |>cursor during processing to alert the user that work is underway.  If I perform
  20. |>the following code:
  21. |>************************* 
  22. |>Cursor watch_cursor;
  23. |>/* turn on watch so the user isn't confused - this process can be time
  24. |>        consuming!!  */
  25. |>watch_cursor = XCreateFontCursor(XtDisplay(main_widget),XC_watch);
  26. |>XDefineCursor(XtDisplay(main_widget),XtWindow(main_widget),watch_cursor);
  27. |>*******************
  28. |>nothing happens.
  29.  
  30. You should try to call 
  31.  
  32.     XFlush( XtDisplay(main_widget) );
  33.  
  34. because the Xlib is buffering the messages to the XServer .
  35. It works fine on my applications.
  36.  
  37.  
  38.  
  39. ----------------------------------------------
  40. Torsten Ihle, cand. inf., TU-Dresden
  41. EMail: ihle@iki101.inf.tu-dresden.de
  42.  
  43. Es ist deutsch in Kaltland !
  44. ----------------------------------------------
  45.