Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!greve.ucs.ubc.ca!lindholm From: lindholm@greve.ucs.ubc.ca (George Lindholm) Newsgroups: comp.windows.x Subject: Re: placing widgets? Message-ID: <8850@ubc-cs.UUCP> Date: 23 Jul 90 03:03:17 GMT References: <8775@ubc-cs.UUCP> <26394@pasteur.Berkeley.EDU> Sender: news@cs.ubc.ca Reply-To: lindholm@greve.ucs.ubc.ca (George Lindholm) Organization: University Computing Services, UBC Lines: 65 In article <26394@pasteur.Berkeley.EDU>, scott@graft.Berkeley.EDU (Scott Silvey) writes: |> lindholm@greve.ucs.ubc.ca (George Lindholm) writes: |> |> I have a form widget that contains two viewport widgets side-by-side. |> Below the . . . (deleted) |> #include |> #include |> #include |> #include . . . (deleted) Let me try again (I know I shouldn't have tried simplifying it). Given the following layout: +---------------------------------form---------------------------------+ | +------+ +------+ | | |Menu 1| |Menu 2| | | +------+ +------+ | | +----------viewport----------+-+ +-+ +-+---------viewport----------+ | | | |S| |S| |S| | | | | |c| |c| |c| | | | | |r| |r| |r| | | | | |o| |o| |o| | | | | |l| |l| |l| | | | | |l| |l| |l| | | | | |b| |b| |b| | | | | |a| |a| |a| | | | | |r| |r| |r| | | | | |1| |2| |3| | | | +----------------------------+-+ +-+ +-+---------------------------+ | | |viewport scrollbar | | viewport scrollbar | | | +----------------------------+ +---------------------------+ | | +-------++-------++-------+ | | |Button1||Button2||Button3| | | +-------++-------++-------+ | +----------------------------------------------------------------------+ How do I put the following constraints on the widgets during resizing?: 1) Keep the vertical scrollbars from changing their width while still allowing them to become taller or shorter? 2) Keep the menu widgets and button (command) widgets in their relative positions without changing their size? I can do most of it by using three form widgets inside the outer form widget (plus XtMoveWidget). This would take care of the menus and Button1 and Button3 but I still can't prevent scrollbar2 and button2 from growing/shrinking as the window is resized. If I use XtResizeWidget on scrollbar2, is there any way to get the form widget to move the other widgets around based on the new size without changing scrollbar2 behind my back? lindholm@staff.ucs.ubc.ca George_Lindholm@mtsg.ubc.ca USERGNL@UBCMTSG.BITNET University of British Columbia Computing Services (604) 228-4375