Setting Up Gadget Docking: <fgdock>
- Last UpdatedNov 07, 2024
- 1 minute read
The DOCK attribute allows you to dock a gadget to the left, right, top, or bottom edge of its container, typically a form or a frame; or you can cause the gadget to dock to all edges, or to no edges.
>-- <fgdock> -----------+-- DOCK ----+-----Left ----.
+---- Right ‑--|
+---- Top -----|
+---- Bottom ‑-|
+---- None --‑-|
‘---- Fill --‑-’-->
Note:
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.
Set these attributes only when the gadget is defined. It cannot be changed after exiting
from setup. The resize behavior at run-time is not allowed.