home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!think.com!paperboy.osf.org!juliet!daniel
- From: daniel@juliet.osf.org (Daniel Dardailler)
- Subject: Re: Error: Shell Widget 3 has zero width ...
- Message-ID: <1992Dec21.151505.11472@osf.org>
- Keywords:
-
- Sender: daniel@juliet (Daniel Dardailler)
- Organization: Open Software Foundation, Motif Team
- References: <1992Dec18.220519.419@nuscc.nus.sg>
- Date: Mon, 21 Dec 1992 15:15:05 GMT
- Lines: 23
-
- |> The enclosed codes compiled OK and run with this error
- |> - Error: Shell widget 3 has zero width and/or height
-
- |> toplevel = XtInitialize(argv[0],"3",NULL,0,&argc,argv);
- |> n = 0;
- |> XtSetArg(args[n], XmNdefaultPosition, FALSE); n++;
- |> XtSetArg(args[n], XmNresizePolicy,2); n++;
- ^
- Very bad practice (but nothing to do with your problem).
-
- |> XtSetArg(args[n], XmNx, 115); n++;
- |> XtSetArg(args[n], XmNy, 287); n++;
- |> XtSetArg(args[n], XmNwidth, 200); n++;
- |> XtSetArg(args[n], XmNheight, 200); n++;
- |> BULLETINBD_0 = XmCreateBulletinBoardDialog(toplevel,"BULLETINBD_0",args,n);
- |> XtManageChild(BULLETINBD_0);
- |> XtRealizeWidget(toplevel);
- |> XtMainLoop();
-
- Your toplevelshell "3" has no child to layout, just a popup.
- Therefore it has no size.
- Look at the Xt doc for hints on how to play with hidden shell.
-
-