Most gadgets have the ANCHOR attribute and a few have the
DOCK attribute which allow the user to define gadgets that have intelligent positioning and resizing behaviour when their container gadget resizes.
However, the DOCK and
ANCHOR attributes are mutually exclusive: setting the
DOCK attribute resets the
ANCHOR to the default; setting the
ANCHOR attribute resets
DOCK to none.
ALPHA and
VIEW gadgets do not support
DOCK or
ANCHOR attributes. They do, however, expand to fill their containers, so you can put them in a frame and set the frame’s
DOCK or
ANCHOR attributes to get the behaviour you want.