[comp.windows.x.motif] Scrolled Window Work Area question

dave@maths.tcd.ie (David Roe) (04/08/91)

	This may be a FAQ, sorry in advance if it is. 

I have a scrolled window which is is fetched from uil with a bulletin board
work window already set up and the scrolling policy set to XmAUTOMATIC.

This bb is then given loads of pushbutton and separator children in a 
hierarchical structure. This works fine, the form that contains the scrolled
window handles its resizing and the bb grows as the hierarchy extends over the
edges. 

However, now I want to be able to flick between several different hierarchies,
i.e. a popup menu keeps track of several named hierarchies created so far 
and also cotains a 'new' option which  should create a new, blank bb and set 
it as the new work region using XmScrolledWindowSetValues. The user can then
flick between them, the menu calling XmScrolledWindowSetAreas to change
between the list of bbs.

The current behaviour is that a 'new' will create a new bb and apparently 
set it to be the work_region, however, setting the workregion back to the
original one yields naught. Also, whatever is being displayed through the
clipping window is not the newly created bb. 

	Am I using XmScrolledWindowSetAreas for something it was not
intended for? Or is there perhaps something simple that I should be doing?

	Any help would be greatly appreciated.

Using Motif 1.0 on a decstation 3100 under ULTRIX V4.0