Shrink-Wrapping Behavior


The citation from "X Window System Toolkit"
by Paul J. Asente & Ralph R. Swick (I like this book).

    Many widgets assume their default size if the applications sets the width and height resources of widget to zero, so applications request the default size this way. This is sometimes called shrink-wrapping if the widget is composite since the widget changes to a size just large enough to hold all the children. Application writers should consult the widget documentation to see if a widget class supports this behavior.














[ Xraw home ]   [ Xraw widget class hierarchy ]
Vladimir T. Romanovski
romsky@hp1.oea.ihep.su