Initial debugging tests show that when the accelerator text is changed
after the initial create, the client-side idea of how wide the label is
gets updated to accommodate the wider label, but there is never a call
to XConfigureWindow to change the actual width (unless I missed
something somewhere), so the server still thinks it's the old width.

XtSetValues calls (eventually) label's set_values
XtSetValues calls _XtMakeGeometryRequest() which returns
  XtGeometyrAlmost with a new size
XtSetValues calls set_values_almost which just copies the new
 suggested size to the goeReq structure
XtSetValues then calls (*resize) which ends up in ResizeWrapper5
  which ends up in label's resize method.  This computes desired
  sizes but does nothing else.


It occurred to me that if I used gadgets in my menus instead of
widgets, the actual window resize would be unnecessary, and this
does in fact "solve" my immediate problem for now, even though
the behavior is still broken for widgets



----- Original Message ----- 
From: "Danny Backx" <[EMAIL PROTECTED]>
To: "Dave Williss" <[EMAIL PROTECTED]>
Cc: "LessTif Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 24, 2004 2:05 PM
Subject: Re: [Lesstif-discuss] XmLabels and accelerator text


> I just modified test/Xm/rowcolumn/test17.c to show this problem,
> so we can now reproduce it with a simple example.
>
> Danny
>
> On Mon, 2004-08-23 at 17:28, Dave Williss wrote:
> > Here's a new problem...
> >
> > I have a menu with XmPushButtons on it
> > After the menu has been created, something calls
> > XtSetValues to set the XmNaccelerator and
> > XmNaccleratorText.
> >
> > The menu pane (an XmRowColumn) gets resized
> > to accommodate the new width of the label, but
> > something causes it to clip the right edge off
> > at the old width.  The result is that the accelerator
> > text doesn't show up and when you mouse over
> > the menu item the shadow rectangle is clipped
> > off.
> >
> > The attached image will show what I mean.
> > The Redraw menu entry should have (Ctrl+R)
> > listed as an accelerator on the right
> >
> >  -- Dave Williss
> > ------
> > Meddle not in the affairs of dragons,
> >    for you are crunchy and taste good with catsup
> -- 
> Danny Backx - danny.backx-at-planetinternet.be    http://up.to/danny.backx
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Lesstif-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/lesstif-discuss
>



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Lesstif-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss

Reply via email to