Hey Danny,

I noticed that in xbaeResizeRowsACT and xbaeResizeColumnsACT (Actions.c), they
both unmap the textfield by calling commit_edit with unmap=True because "it's
just a bad luck".  Do you know why it's a bad luck?  
I tried to find a place in xbaeVertScrollCB where it might do the similar
thing, but couldn't find it...  


several hours later...
Well, after staring at it a bit longer, this is my hypothesis:
I think there's a problem with the vertical scrollbar setup.  First of all,
the slider size is disproportionate compared to the number of rows.  And I
think this results in XmScrollBarCallbackStruct->value having the wrong values
which affect the position of the textfield when we do XtMoveWidget in
xbaeScrollVertCB.  So I think instead of getting unmapped, the textfield is
actually moved to some faraway place that we can't see.  Is this related to
ROW_HEIGHT and SOME_ROW_HEIGHT uncertainty in the code?  

I'm giving it up for the day.

Joanna  

Danny Backx wrote:
> 
> I looked a bit but couldn't find it. I'll look better, maybe what you
> write points me in the right direction. I couldn't find an action
> in the source that triggered the unmapping, neither directly nor
> indirectly. Until I find that, I'm walking around like a blind man.
> 
>         Danny
> 
> Joanna Lee wrote:
> > Did you ever look into this unmapping textfield problem?  I've been carried
> > away with other things and came back to look at it.  So far, I can narrow it
> > down to the vertical scrollbar callback because the textfield unmaps when I
> > either scroll up or down even if it's still in the viewing range.  When I
> > scroll sideways, the textfield remains mapped.  I've been staring at
> > ScrollMgr.c, but I'm still not sure why the textfield unmaps for the vert
> > scroll.
> >
> > Joanna
> 
> --
> Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED])
> Home page :     http://users.skynet.be/danny.backx
> Projects:       LessTif (http://www.lesstif.org)
>                 Oleo    (http://www.gnu.org/software/oleo/oleo.html)
> _______________________________________________
> Lesstif mailing list
> [EMAIL PROTECTED]
> https://terror.hungry.com/mailman/listinfo/lesstif

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joanna Lee              [EMAIL PROTECTED]
Rhythm & Hues Studios   W: (310) 448-7031
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to