home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!mcsun!sun4nl!dutrun!donau!duteca.et.tudelft.nl!tirza
- From: tirza@duteca.et.tudelft.nl (Tirza van Rijn)
- Subject: Incomplete FormWidget - PushButton & MenuBar - hourglass cursor
- Message-ID: <1993Jan05.223406.6400@donau.et.tudelft.nl>
- Sender: news@donau.et.tudelft.nl (UseNet News System)
- Nntp-Posting-Host: duteca.et.tudelft.nl
- Organization: Delft University of Technology, Dept. of Electrical Engineering
- Date: Tue, 05 Jan 1993 22:34:06 GMT
- Lines: 45
-
-
- Hello *,
-
-
- I have a few problems/questions I hope somebody out there can help me with.
-
- First, I have written a user interface where selecting a menu entry opens a
- FormDialog with LabelGadgets and TextWidgets, and an OK and Cancel PushButton
- and then, using another program, the user is allowed to indicate a position
- on a digitized map with his cursor.
-
- The problem is that when this FormDialog appears it is not complete: sometimes
- only the FormDialog is visible, sometimes also the background of the
- TextWidgets, but never the LabelGadgets and the OK and Cancel PushButtons.
- They become visible only *after* the program that handles the cursor
- positioning on the map returns.
-
- I manage all the widgets in the FormDialog and give a XFlush and a
- XmUpdateDisplay before I call the other program, I even put a dummy waiting
- loop before that, but to no avail: it doesn't help to get the FormDialog to
- be complete when it appears.
-
- Second, I (more or less accidentally, this is allowed in MS-Windows ;-) put a
- PushButton in the MenuBar and this PushButton works correctly (i.e. its
- ActivateCallback is correctly executed when the PushButton is pressed). I know
- that the MenuBar is a homogeneous RowColumn widget that accepts only children
- of a subclass of CascadeButton, but if it's wrong to add a PushButton to a
- MenuBar, then why does it work?
-
- Third, I want to use the hour glass cursor as 'busy waiting' cursor. I know
- how to make the watch 'busy waiting' cursor, but the hour glass is a Motif-
- specific cursor, so I don't know the X cursor name or its cursor ID. How do
- I set the cursor to hour glass?
-
- ______
- |_ Thanks in advance for any help,
- |_)
- |v\ Tirza
-
- --------------------------------------------------------------------------------
- Tirza van Rijn | e-mail: tirza@duteca.et.tudelft.nl
- Department of Electrical Engineering |
- Delft University of Technology | Thou art beautiful, Oh my love, as Tirzah
- Delft, The Netherlands | Song of Salomon 6:4
- --------------------------------------------------------------------------------
-