Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!modcomp!ron From: ron@modcomp.uucp (Ron Stoehr) Newsgroups: comp.windows.x.motif Subject: Re: Positioning dialogs, etc Message-ID: Date: 15 Nov 90 20:52:58 GMT References: <108384@convex.convex.com> <9011130337.AA14524@pegasus> Sender: news@modcomp.uucp (Mr. News) Distribution: inet Organization: MODCOMP, REAL/IX Development Group Lines: 22 tsang@ISI.COM (Kam C. Tsang) writes: >> 2. How can create a XmScale so that I can change the value with XmScaleSetValue >> while not letting the user to modify the value using the mouse ? >One way is to set the sensitivity of the XmScale to FALSE. >Hope it helps. This works, but has one drawback. If you just set the scale widget insensitive, the associated label widget becomes insensitive as well! You can prevent this by using the following code: XtSetSensitive (XtNameToWidget (scale_widget, "scale_scrollbar"), False); This way you are only affecting the scrollbar of the scale widget and the label remains readable... Ronald Stoehr Modular Computer Systems, Inc. voice: (305) 977-1009 1650 W. McNab Road fax: (305) 977-1440 Ft. Lauderdale, FL 33340-6099