GtkPaned::pack2

GtkPaned::pack2

void pack2( GtkWidget child , [bool resize = true , [bool shrink = true ]]);

pack2() packs the child widget specified into the bottom or right pane of a GtkPaned-based widget.

The resize parameter when set to its default true allows the pane and its child widget to expand to fill the area between the dividing handle and the edge of the container when the toplevel window is maximised, in the direction of the pane arrangement. The position of the dividing handle can be set using set_position() , or by default is set at the size requested by the child belonging to the opposite pane, where its resize parameter has been set to false.

Note that the resize parameter describes the spatial relationship between the two panes, so that setting both panes alike will always result in both panes resizing when the top-level window is maximised. The user resizing facility offered by the handle is not affected by the resize setting.

The shrink parameter when set to its default true allows the pane to shrink beyond the size requested by its child widget. Setting the shrink parameter to false prevents it from doing this. Note that setting the parameter to false across both panes renders the dividing handle ineffective where the size of the top-level window is reliant upon the size requests of the child widgets.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.