pusateri@macbeth.cs.duke.edu (Thomas J. Pusateri) (03/08/90)
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
tom@ssd.csd.harris.com (Tom Horsley) (03/10/90)
>shell get truncated. This doesn't seem right. Maybe there is a problem >with the form widget here? I think this is indeed a problem with the form widget. It is one of my biggest peeves that I cannot tell the form widget which children to try and resize and which children to leave alone. There is a resource named resizable (or something like that), but it merely tells the form widget if it should honor resize requests coming from the child. -- ===================================================================== domain: tahorsley@ssd.csd.harris.com USMail: Tom Horsley uucp: ...!novavax!hcx1!tahorsley 511 Kingbird Circle or ...!uunet!hcx1!tahorsley Delray Beach, FL 33444 ======================== Aging: Just say no! ========================