home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!irz401!iki101.inf.tu-dresden.de!ihle
- From: ihle@iki101.inf.tu-dresden.de (Torsten Ihle)
- Newsgroups: comp.windows.x.motif
- Subject: Re: changing cursors or motif widgets
- Date: 21 Jan 1993 11:24:31 GMT
- Organization: Dept. of Computer Science, Technical University of Dresden, Germany
- Lines: 31
- Distribution: world
- Message-ID: <1jm15fINN9ha@irz401.inf.tu-dresden.de>
- References: <1993Jan7.153710@roper.mc.ti.com>
- Reply-To: ihle@iki101.inf.tu-dresden.de (Torsten Ihle)
- NNTP-Posting-Host: irzr27.inf.tu-dresden.de
-
-
- --
- In article <1993Jan7.153710@roper.mc.ti.com>, a722756@roper.mc.ti.com (W. Donald Rolph) writes:
-
- |>I am writing a motif application using motif widgets. I would like to change the
- |>cursor during processing to alert the user that work is underway. If I perform
- |>the following code:
- |>*************************
- |>Cursor watch_cursor;
- |>/* turn on watch so the user isn't confused - this process can be time
- |> consuming!! */
- |>watch_cursor = XCreateFontCursor(XtDisplay(main_widget),XC_watch);
- |>XDefineCursor(XtDisplay(main_widget),XtWindow(main_widget),watch_cursor);
- |>*******************
- |>nothing happens.
-
- You should try to call
-
- XFlush( XtDisplay(main_widget) );
-
- because the Xlib is buffering the messages to the XServer .
- It works fine on my applications.
-
-
-
- ----------------------------------------------
- Torsten Ihle, cand. inf., TU-Dresden
- EMail: ihle@iki101.inf.tu-dresden.de
-
- Es ist deutsch in Kaltland !
- ----------------------------------------------
-