On 19-Apr-00 at 20:16, Haral Tsitsivas ([EMAIL PROTECTED]) wrote:
> Danny Backx wrote:
> >
> > If this is small enough so you can send it to us, please do so.
> > Or is this an app that we can download ?
> >
> > Danny
> >
> > [EMAIL PROTECTED] on 08/04/2000 00:57:00
> > To: [EMAIL PROTECTED]@Internet
> > cc: (bcc: Danny Backx/U27113/KB/KredAlm)
> > Subject: fields in form dialog screen don't get focus...
> >
> > I have a program that works with standard Motif on a number of platforms
> > but when I build it on Linux with LessTif 0.89.9 (same with 0.88.0)
> > the text fields in the form of a dialog box cannot get focus and are
> > not editable. Option fields are OK and receive focus when I click on
> > them... same with selection lists... It is text fields that cannot
> > be changed! Is there something special that must be done with LessTif
> > (that is not required in Motif)?
> >
> > Thanks
> >
> > I am using LessTif version 0.89.9 on RedHat 6.1 on Intel.
> > A couple of years ago I built the same program with one of the commercial
> > Motif releases and I did not have this problem (I think it was RedHat
> > 4.0?).
>
> I narrowed down the problem to the use of the XmNsensitive attribute.
> I modified the following small program from one of the tuturial links
> on your web site to exhibit the problem. I call XmCreateScrolledText
> with XmNsensitive set to FALSE, and immediately after I set it to TRUE
> with "XtVaSetValues(text, XmNsensitive, TRUE, NULL);".
> The text field still cannot receive focus... Can you narrow this down
> given this small example?
Do things work as expected if you use XtSetSensitive instead of SetValues??
XtSetSensitive does alot more under the hood than simply setting the sensitive
resource.
>
> I compile the example as follows:
>
> cc -g -I/usr/X11R6/include -I/include text.o -o text -L/usr/X11R6/lib
> -L/lib -lXm -lXt -lX11
>
> I have sym links from /usr/X11R6/include/Xm to LessTif/Motif1.2/include/Xm/
> and likewise for the libraries.
>
> Thanks
>
> --
> --Haral Tsitsivas, UniSolutions Associates (http://www.unisol.com/)
> System Accounting & Chargeback, Backup and Restore, System Administration
> Voice: (949) 488-3960, Fax: (949) 443-5354, E-mail: [EMAIL PROTECTED]