Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!mephisto!mcnc!duke!macbeth!pusateri From: pusateri@macbeth.cs.duke.edu (Thomas J. Pusateri) Newsgroups: comp.windows.x Subject: Athena Widget resizing Keywords: athena Message-ID: <18037@duke.cs.duke.edu> Date: 7 Mar 90 17:09:32 GMT Sender: news@duke.cs.duke.edu Lines: 21 I am using the athena text widget to display columns of data. The text widget is dynamically resized depending on the number of columns requested. This resizing works fine simply by setting the XtNwidth using XtSetValues. The problem appears when I try to prevent the program from running off the end of the screen. I change the size to the requested value and then use XtTranslateCoords to get the starting position of the top level shell. If the starting position plus the width of the top level shell plus the borders are greater than the width of the screen then I resize the top level shell to stop at the screen boundary. The text widget enables horizontal scrolling (scrollWhenNeeded) and it looks fine. However, all of the labels and command buttons in the top level shell get truncated. This doesn't seem right. Maybe there is a problem with the form widget here? Thanks for any info! Tom Pusateri pusateri@nbsr.duke.edu