home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8455 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.4 KB

  1. Path: sparky!uunet!vtserf!creatures!vtopus.cs.vt.edu!tlee
  2. From: tlee@vtopus.cs.vt.edu (Timothy Lee)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Dialog and Menu push button questions
  5. Message-ID: <4001@creatures.cs.vt.edu>
  6. Date: 8 Jan 93 23:24:13 GMT
  7. Sender: usenet@creatures.cs.vt.edu
  8. Reply-To: tlee@vtopus.cs.vt.edu (Timothy Lee)
  9. Organization: Virginia Polytechnic Institute & State University
  10. Lines: 32
  11.  
  12.  
  13. I have two problems:
  14.  
  15. 1) Goal: I am trying to put up a message dialog w/ a "Please wait..." message 
  16. while my program is processing.  After calculation, I remove the dialog and 
  17. put up a window with results.
  18.    Problem: All I got is a dialog that's not fully displayed (a partial dialog
  19. with no message inside).  The dialog only contains message when my calculations
  20. are completely done, which defeats the purpose of message dialog.
  21.  
  22.    Skeleton:
  23.        [omitted]
  24.        message = XmCreateMessageDialog ((Widget) parent, "message", arg, i);
  25.        XtManageChild (message);
  26.  
  27.        codes...(includes some interface code to bring up the results)
  28.      (create soem widgets...)
  29.  
  30.        XtUnmanageChild (message);
  31.  
  32.        codes
  33.            (manage the created widgets & displays resutls...)
  34.  
  35. What's wrong?
  36.  
  37. 2) Goal: Given a pull-down menu, I want to mark the items that are active.
  38. It seems X can include a bitmap with XtNleftBitmap, but not Motif.  How can
  39. I accomplish this?
  40.  
  41. Thanks.
  42.  
  43. Tim Lee        tlee@csgrad.cs.vt.edu
  44.