[comp.windows.x.motif] Scale Widget Sizing Problem

ded2530@otis.ca.boeing.com (Dale E. Dey) (04/12/91)

I'm running motif 1.01 and X11R3, and when trying to dimension
a scale widget, it seems that the slider area is fixed
(scaleWidth in the HORIZONTAL processing direction).
I can resize the thickness of the slider ok (scaleHeight in
the HORIZONTAL).

                                    |
|---------------------------------| V
||-------------------------------||
||         []                    || scaleHeight
||-------------------------------||
|---------------------------------| ^
                                    |
 |<------- scaleWidth ---------->|
   CAN NOT GET THIS TO CHANGE.

Please help!  Do you know how to resize the scaleWidth?
The OSF/Motif books from OSF are lacking adequate
reference on scales (and many other things).

Thanks in advance.

Dale E. Dey                    | ** I'm completely on my own. ** 
Boeing Computer Services       | Internet: ded2530@otis.ca.boeing.com
P.O. Box 24346, M/S 6M-97      | UUCP: !uunet!bcstec!otis!ded2530 
Seattle, WA 98124-0346         | Phone: (206) 234-3611

dwight@geohub.gcn.uoknor.edu (Dwight D. Moore) (04/15/91)

I had the same problem, I solved this by making sure the container widget (the
scale widget's
parent) was as wide as was needed to set the scaleWidth.  I found this a little
annoying since
you would think the the geometry negotiation between the parent and child would
handle
this.
----------------------------------------------------------------------------
                                Dwight D. Moore
                         Geosciences Computing Network
                            University of Oklahoma

                  dwight@geohub.gcn.uoknor.edu (129.15.40.10)
----------------------------------------------------------------------------
disclaimer ()
{
    if ((fp = fopen("mail", "w+")) == NULL) exit (1);
    fprintf (fp, "This is my opinion.\n");
    fprintf (fp, "This does not represent the opinion of OU or the GCN\n");
    fclose (fp);
}