Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!gatech!utkcs2!alphard!battle From: battle@alphard.cs.utk.edu (David Battle) Newsgroups: comp.windows.x Subject: Automatic relayout/resize of Athena Form Widget Summary: form widget appears to squeeze widgets inside unnecessarily Keywords: athena form widget Message-ID: <885@utkcs2.cs.utk.edu> Date: 17 May 89 14:21:30 GMT Sender: news@utkcs2.cs.utk.edu Reply-To: battle@utkcs2.cs.utk.edu (David Battle) Organization: Environmental Sciences Division, Oak Ridge National Labs Lines: 29 I am having trouble with the athena form widget. The form widget in question is inside a viewport widget. It contains several subordinate form widgets layed out vertically (one below the other). This layout is achieved by using the XtNfromVert argument when creating each of the subordinate form widgets and specifying the previously created widget. Each of the subordinate widgets in turn contain a command button and three text widgets layed out horizontally (using XtNfromHoriz). The viewport widget mentioned earlier has vertical scrolling enabled. This allows vertical scrolling through the collection of subordiante forms. So far, everything works quite nicely. Now comes the problem. When I delete one of the subordinate form widgets with XtDestroyWidget, the parent form widget resizes itself smaller. This is to be expected, I suppose, except that it seems to over do it. It then proceeds to reduce the vertical size of each of the remaining subordinate form widgets. This continues happening each time I destroy a subordinate form widget until some minimum vertical size for each subform is aparently reached. At this point, it is impossible to read the text inside the text widgets because they are so short. I haven't tried it, but I could probably stop this behavior by specifying a height for the subordinate form widgets, but for other reasons, I do not want to do this. Can anyone shed any light on this problem? -David L. Battle battle@esddlb.esd.ornl.gov battle@utkcs2.cs.utk.edu