From: georgec@eng.umd.edu (George B. Clark)
Subject: Resizing A Scrolled Window
Date: Wed, 08 Apr 92 15:58:54 GMT
Organization: College of Engineering, University of Maryland, College Park
Distribution: inet
Keywords: FAQ question answer

I've been unable to resize a scrolled window that I'm using to display
lines of text. I've tried setting the XmNheight and XmNwidth resources on
all the following widgets with no success:

    (1) The prompt dialog box that contains the scrolled window.
    (2) The scrolled window.
    (3) The widget identified by the scrolled window's XmNworkWindow resource.
    (4) The scrollbar widgets on the scrolled window. 
    (4) The label gadget that contains the lines of text inside the
        scrolled window.

No matter how I set these resources in the source code, the prompt dialog
window always opens with a minimal size. Furthermore, when I resize the
prompt dialog window's height by dragging the mouse on its frame, the
increased height is allocated to the bottom regin of the window that
contains pushbuttons. That botton region is separated from the scrolled
window by a separator gadget. Obviously I would prefer the size increase,
to instead be allocated to the scrolled window.

Any suggestions would be appreciated.


         ____________________________________________________________
         |    Prompt Dialog Box                                     |
         |                                                          |
         |   ----------------------------------------------------   |
         |   | Scrolled Window                                  |   |
         |   |                                                  |   |
         |   |   --------------------------------------------   |   |
         |   |   |                                          |   |   |
         |   |   |  Label Gadget containing lines of text   |   |   |
         |   |   |                                          |   |   |
         |   |   |                                          |   |   |
         |   |   |                                          |   |   |
         |   |   |                                          |   |   |
         |   |   |                                          |   |   |
         |   |   |                                          |   |   |
         |   |   |                                          |   |   |
         |   |   --------------------------------------------   |   |
         |   |                                                  |   |
         |   ----------------------------------------------------   |
         |                                                          |
         |                      Separator Gadget                    |
         |    ----------------------------------------------------  |
         |                                                          |
         |    --------                                              |
         |    | Close |     <---- Pushbutton                        |
         |    --------                                              |
         |                                                          |
          ------------------------------------------------------------ 


Newsgroups: comp.windows.x.motif