Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!sharkey!mcf!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.windows.x Subject: Question on shell widgets and geometry Message-ID: <9079@elsie.UUCP> Date: 25 Feb 89 19:39:50 GMT Organization: NIH-LEC, Bethesda, MD Lines: 39 Suppose I compile this code, naming the executable "try": #include #include #include int main(argc, argv) int argc; char * argv[]; { Widget widget; Arg args[2]; widget = XtInitialize("main", "Demo", (XrmOptionDescRec *) NULL, 0, &argc, argv); XtSetArg(args[0], "width", 100); XtSetArg(args[1], "height", 100); XtSetValues(widget, args, 2); if (argc > 1) (void) XtCreateManagedWidget("box", boxWidgetClass, widget, (ArgList) NULL, 0); XtRealizeWidget(widget); XtMainLoop(); } If I then use the command try -geometry +0+0 x the geometry option is heeded and the created window appears in the upper-left-hand corner of my screen. But if I do a plain try -geometry +0+0 (so that the top-level widget has no children) the geometry option is not heeded. Should I be surprised by this? In those cases where I'm using the toolkit only to get standardized option processing, is there some way of getting geometry options heeded other than by creating a phony child widget? -- Arthur David Olson ado@ncifcrf.gov ADO is a trademark of Ampex.