Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!snorkelwacker!bloom-beacon!ZIA.AOC.NRAO.EDU!cflatter From: cflatter@ZIA.AOC.NRAO.EDU (Chris Flatters) Newsgroups: comp.windows.x Subject: Re: More Xview questions..... Message-ID: <9010120028.AA19156@zia.aoc.nrao.edu> Date: 12 Oct 90 00:28:23 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 23 Ken Johnson writes: > I have a panel and a canvas. The panel and the canvas are not > the smae sizes so there is a region of the frame that doesn't actually > contain anything. This area is white. How do I color it the same as my > frame background so that it looks better. Ken should not need to set the colour on the spare space (indeed I am at something of a loss as to how that could be done). There are two possibilities that might give rise to what is described here. In the first case the canvas is wider than the panel. This will occur if the WIN_FIT_WIDTH attribute is set on the panel. The solution is not to set it. The panel will then extend the full width of the frame with the buttons left justified in the panel and the canvas immediately below. In the second case the panel is wider than the canvas. The easiest solution is just to make sure than the canvas is wider than the value of the panels XV_WIDTH attribute. If, for some reason, this is not possible (eg. the application requires a canvas of fixed size) it should be possible to fill in the gap using a second panel with no controls attached. Chris Flatters