| Functions like XtResizeWidget are only supposed to be used by a geometry
manager on its children. You should not be calling it.
On the question why doesn't the label resize... Here's a guess.
Geometry management requests go up the widget hierarchy until a geometry
manager says "yes". What may be happening is this. The label asks its parent
(the dialog box) to get bigger. If this would cause the dialog box to get
bigger, it must asks its parent, etc.... If the answer from somewhere
"above" is "No", then that is what the dialog box will tell the label, and
the label will not be resized.
Leo
|
| > Geometry management requests go up the widget hierarchy until a geometry
>manager says "yes". What may be happening is this. The label asks its parent
>(the dialog box) to get bigger. If this would cause the dialog box to get
>bigger, it must asks its parent, etc.... If the answer from somewhere
>"above" is "No", then that is what the dialog box will tell the label, and
>the label will not be resized.
So the problem might be that resizing the label would cause it to
become longer that its parent DIALOG_BOX is wide, then? I've set the
parent dialog box to a fixed width myself, so the dialog box may well
refuse to resize itself. However, it's not an attached dialog box, so
why can't the label just resize itself and get clipped by the dialog
box? Is there any way to make things behave this way?
|
|
> So the problem might be that resizing the label would cause it to
> become longer that its parent DIALOG_BOX is wide, then?
Yes.
> I've set the
> parent dialog box to a fixed width myself, so the dialog box may well
> refuse to resize itself.
Do you mean that you have set the DwtNresize resource to DwtResizeFixed,
or that you explicitly set the width.
> However, it's not an attached dialog box, so
> why can't the label just resize itself and get clipped by the dialog
> box? Is there any way to make things behave this way?
If you didn't set the DwtNresize resource to DwtResizeFixed, try that.
Leo
|