Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!mcnc!duke!romeo!ndd From: ndd@romeo.cs.duke.edu (Ned D. Danieley) Newsgroups: comp.windows.x Subject: Form widget size restrictions? Keywords: X11R3 Message-ID: <14265@duke.cs.duke.edu> Date: 21 Apr 89 16:34:08 GMT Sender: news@duke.cs.duke.edu Lines: 26 X11R3, patches 1-8, gcc 1.33, twm 1.2, Sun 3/280, SunOs 3.5 I have an application which starts off like: XtToolkitInitialize(); context = XtCreateApplicationContext(); dpy = XtOpenDisplay(context, NULL, "test", "Test", NULL, 0, argc, argv); toplevel = XtAppCreateShell(NULL, NULL, applicationShellWidgetClass, dpy, NULL, NULL); I then set the dimensions of toplevel using XtSetValues, create a Form widget whose parent is toplevel, and add some buttons to that form (call it TopForm). Now what I want to do is click on one of the buttons in TopForm, and create another form widget. The problem I'm having is that this second form, which I make a child of toplevel, always comes up right on top of TopForm, and is clipped by TopForm. It turns out that these secondary forms need to be a good bit bigger than TopForm, so this causes problems. Am I really restricted to the size (and location) of toplevel when I create its children? Ned Danieley (ndd@sunbar.mc.duke.edu) Basic Arrhythmia Laboratory Box 3140, Duke University Medical Center Durham, NC 27710 (919) 684-6807 or 684-6942