home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!pan.mc.ti.com!a722756
- From: a722756@roper.mc.ti.com (W. Donald Rolph)
- Subject: changing cursors or motif widgets
- Message-ID: <1993Jan7.153710@roper.mc.ti.com>
- Originator: a722756@roper.mc.ti.com
- Sender: usenet@pan.mc.ti.com (USENET News System)
- Organization: Texas Instruments / Attleboro Mass / USA
- Date: Thu, 7 Jan 1993 20:37:10 GMT
- Lines: 41
-
-
- I am probably doing something very stupid, and this may very well be in a FAQ,
- although I cant seem to stumble on it. My apologies.
-
- 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.
-
- If I do:
- *******************
- 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);
- /* this stupidity is to get around a problem in displaying the cursor*/
- message_box = XmCreateWarningDialog(main_widget, "Message Box",
- args, argcount);
- *******************
- where message_box is never realized or managed, the cursor changes.
-
- Can some one help an obviously confused person?
-
- Thanks in advance.
-
- Regards.
-
- Don Rolph a722756@pan.mc.ti.com WD3 MS10-13 (508)-699-1263
- --
-
- Regards.
-
- Don Rolph a722756@pan.mc.ti.com WD3 MS10-13 (508)-699-1263
-