home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / graphics / 90 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.9 KB  |  53 lines

  1. Newsgroups: comp.sys.sgi.graphics
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!sgiblab!sgigate!odin!twilight!zola!rwb.esd.sgi.com!blean
  3. From: blean@rwb.esd.sgi.com (Bob Blean)
  4. Subject: Re: motif convenience functions
  5. Message-ID: <ufmkv3s@zola.esd.sgi.com>
  6. Sender: news@zola.esd.sgi.com (Net News)
  7. Organization: Silicon Graphics
  8. References:  <1993Jan1.161847.2266@vela.acs.oakland.edu>
  9. Distribution: na
  10. Date: Tue, 5 Jan 93 02:13:17 GMT
  11. Lines: 40
  12.  
  13. In article <1993Jan1.161847.2266@vela.acs.oakland.edu>, sglanger@vela.acs.oakland.edu (LANGER STEVEN C) writes:
  14. |> When using functions like
  15. |>     dialog = XmCreateMessageDialog(parent, "my_dialog", NULL, 0);
  16. |> 
  17. |> why does the dialog always come up with the title bar
  18. |>         "my_dialog_popup"
  19. |> 
  20. |> I can override this from an app-defaults file, but I'd like to just do
  21. |> it in the code. I've tried
  22. |>     XtVaSetValues (dialog, XmNlabelString, "my_dialog", NULL);
  23. |> 
  24. |> and XtVaSetValues (dialog, XmNlabelType, "my_dialog", NULL);
  25. |> 
  26. |> but the title bar always has _popup appended to it.
  27. |> XtCreateManagedWidget does not do this, but is not as conveneient.
  28. |> Any suggestions?
  29.  
  30. The convenience function XmCreateMessageDialog() creates a DialogShell
  31. (named my_dialog_popup), with a MessageBox child (named my_dialog).
  32. The widget ID of the Message Box is returned to you.
  33.  
  34. The title you see is is the name of the Dialog Shell unless you set the
  35. dialog shell's title.
  36.  
  37.     * setting the app-default file provides a title for the Dialog Shell
  38.  
  39.     * Doing SetValues on the Message box does not.  Doing it on
  40.       XtParent(dialog) should.
  41.  
  42.     * Passing an arg list to the XmCreateMessageDialog call would work,
  43.       because these args are also passed along to the Dialog Shell
  44.       when it is created.
  45.  
  46. XtCreateManagedWidget works differently because, unlike the convenience
  47. function, it is not creating a dialog shell behind your back.
  48.  
  49. I seem to recall that this is all explained in some manual, but I could not
  50. quickly locate it.
  51.  
  52. --Bob
  53.