Well, after several hours of debugging and tracing, I managed to fix
the modal dialog issue.  Then I went to make some diffs to send in my
patches.  I decided to pull down the latest daily snapshot to make my
diffs against and discovered that somebody had already fixed my problem!

I don't suppose there's a list I could subscribe to that would send me the
CVS commit comments, is there?  If there was, I might have saved myself
some time.  On the other hand, tracing through this was a great learning
experience.

My other problem with a dialog growing seems to be something silly
one of our programmers did.  When he gets a resize event on the dialog,
he resizes some widgets in the dialog rather than using a form to do it
for him.  But resizing the widgets causes the dialog to grow by 2 pixels,
so he gets a resize event and repeat.  The fact that resizing the widgets
causes the dialog to grow again is may or may not be an error in Lesstif.
But at any rate, we can fix it in our own code.

----- Original Message ----- 
From: "Michel Bardiaux" <[EMAIL PROTECTED]>
To: "LessTif Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 4:51 AM
Subject: Re: [Lesstif] More problems


> Dave Williss wrote:
>
> > Our testers have found a few more problems in Lesstif which
> > I will be tracking down.
> >
> > 1. Modal dialogs aren't modal.  Anybody have any idea where
> >     to look to fix this one?  The dialog is created via
XmCreateFormDialog
> >     and is supposed to be FULL_APPLICATION_MODAL
>
> ISTR I had to introduce a kluge in my code when using Lesstif;
> basically, the WM_TRANSIENT_FOR property is not correctly set. The
> kludge involved adding a handler for StructureNotifyMask on the dialog;
> in the handler:
>
> if (XtIsRealized(w) && XtIsManaged(w) && event->type == MapNotify) {
> XtVaGetValues(XtParent(w), XmNtransientFor, &tfw, NULL);
> XSetTransientForHint(XtDisplay(w), XtWindow(XtParent(w)), XtWindow(tfw));
> XtRemoveEventHandler(w, StructureNotifyMask, 0, toolbar_popup_handler,
> client_data);
> }
>
>
> HTH, but it was on a rather old version of Lesstif, the problem it
> attacks may have been fixed since then, so dont hold your beath! Use
> xprop to check.
>
>
> >
> > 2. I have a "wizard" dialog that changes it's contents when you
> >     click a "next" button.  The content change causes the dialog
> >     to resize.  With Lesstif, once it resizes, it resized again and
> >     again, slowly growing by one pixel each time.  It's really bizarre
> >     and only happens on one of our dialogs.  I suspect that it may
> >     be related to the other resize problem I found yesterday.
> >
> >
> Sorry, no idea here.
>
> HaND,
> -- 
> Michel Bardiaux
> Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
> Tel : +32 2 790.29.41
>
> _______________________________________________
> Lesstif mailing list
> [EMAIL PROTECTED]
> https://terror.hungry.com/mailman/listinfo/lesstif

_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to