The form Geometry Manager
The form
geometry
manager arranges the geometry of children in the parent window
according to attachment rules. In addition, form
can be used as a replacement for the
existing Tk pack
and place
geometry managers. For example, to
position a widget $top_w
on top
of $bot_w
, you’d do this:
$bot_w->form(-top=>[$topw_w, 0]);
Options to form
are:
-b =>
attachment
Abbreviation for the
-bottom
option.-bottom =>
attachment
Specifies an attachment for the bottom edge of the slave window.
-bottomspring =>
attachment
Specifies the weight of the spring at the bottom edge of the slave window.
-bp =>
value
Abbrevation for the
-padbottom
option.-bs =>
weight
Abbrevation for the
-bottomspring
option.-fill =>
style
Specifies the fillings when springs are used for this widget. The value must be
x
,y
,both
, ornone
.-in =>
$master
Places the slave window into the specified
$master
window. If the slave was originally in$another_master
, all attachment values with respect to$original_master
are discarded. The attachment values will need to be specified again. If you use-in
, it must be used first in the options list.-l =>
attachment
Abbreviation for the
-left
option.-left =>
attachment
Specifies an attachment for the left edge of slave window,
$slave
.-leftspring =>
weight
Specifies the weight of the spring at the edge of the slave window,
$slave
.-lp =>
value
Abbreviation for the
-padleft
option.-ls =>
weight
Abbreviation for the
-leftspring
option.-padbottom =>
value
Specifies the amount of external ...
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.