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

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