home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8149 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!think.com!paperboy.osf.org!juliet!daniel
  3. From: daniel@juliet.osf.org (Daniel Dardailler)
  4. Subject: Re: Error: Shell Widget 3 has zero width ...
  5. Message-ID: <1992Dec21.151505.11472@osf.org>
  6. Keywords: 
  7.  
  8. Sender: daniel@juliet (Daniel Dardailler)
  9. Organization: Open Software Foundation, Motif Team
  10. References:  <1992Dec18.220519.419@nuscc.nus.sg>
  11. Date: Mon, 21 Dec 1992 15:15:05 GMT
  12. Lines: 23
  13.  
  14. |> The enclosed codes compiled OK and run with this error
  15. |> - Error: Shell widget 3 has zero width and/or height 
  16.  
  17. |>   toplevel = XtInitialize(argv[0],"3",NULL,0,&argc,argv);
  18. |>   n = 0;
  19. |>   XtSetArg(args[n], XmNdefaultPosition, FALSE); n++;
  20. |>   XtSetArg(args[n], XmNresizePolicy,2); n++;
  21.                                        ^
  22. Very bad practice (but nothing to do with your problem).
  23.  
  24. |>   XtSetArg(args[n], XmNx, 115); n++;
  25. |>   XtSetArg(args[n], XmNy, 287); n++;
  26. |>   XtSetArg(args[n], XmNwidth, 200); n++;
  27. |>   XtSetArg(args[n], XmNheight, 200); n++;
  28. |>   BULLETINBD_0 = XmCreateBulletinBoardDialog(toplevel,"BULLETINBD_0",args,n);
  29. |>   XtManageChild(BULLETINBD_0);
  30. |>   XtRealizeWidget(toplevel);
  31. |>   XtMainLoop();
  32.  
  33. Your toplevelshell "3" has no child to layout, just a popup.
  34. Therefore it has no size.
  35. Look at the Xt doc for hints on how to play with hidden shell.
  36.  
  37.