[comp.windows.x.motif] Scrollbars and changing their location...

CWIKLA@uimrl7.mrl.uiuc.edu (John/Consultant) (04/15/91)

First I am using Motif 1.0.  I basically have the following widget tree:

			toplevel
		           |
		__________form__________
		|	   |		|
	  DrawingArea     Scrollbar     RowColumn  


I want to change the physical placement of the scrollbars with

XtSetArg(warg[n], XmNx, _newXpos); n++;
XtSetArg(warg[n], XmNy, _newYpos); n++;
XtSetValues(scrollbar, warg, n);

I have to do this after I realize the toplevel widget, due to some 
resizing of my DrawingArea (I basically want to put the scrollbar
on the bottom of the DrawingArea (a little ways down, as if I use
XmATTACH_WIDGET, it gets jammed onto the bottom of the DrawingArea
and I want some space there.)  So I do the following:

	1) Create the widgets
	2) Realize the toplevel
	3) Change the position of the scrollbar
	4) Manage the scrollbar
	
So what happens?  Hard to tell.  No errors, no scrollbars, just my
DrawingArea.  If I remove the DrawingArea, the scrollbar appears, but
crammed to the top of the form widget...Oh yeah, the scrollbar has
all it's attachments XmATTACH_NONE...

SO....Can you change the placement of the scrollbars????

TIA...



******************************************************************************
*  John L. Cwikla             *   cwikla@uiucmrl, cwikla@uimrl7.mrl.uiuc.edu *
*  Chief Consultant, MRLCFC   *	  uimrl::cwikla		(217)333-8281        *
*  University of Illinois     *   Redefining Lunacy...			     *
******************************************************************************