Common Desktop Environment: Desktop KornShell User's Guide

DtkshAnchorRight, DtkshAnchorLeft, DtkshAnchorTop, and DtkshAnchorBottom

These convenience functions simplify the specification of certain classes of form constraints. They provide a way of attaching a component to one of the edges of a form widget in such a way that, as the form grows or shrinks, the component's position does not change. However, depending upon the other form constraints set on this component, it may still grow or shrink in size. This behavior is accomplished using the ATTACH_FORM constraint.

Usage:

DtkshAnchorRight [offset]  
DtkshAnchorLeft [offset] 
DtkshAnchorTop [offset]  
DtkshAnchorBottom [offset]

The optional offset parameter specifies how far from the edge of the form widget the component should be positioned. If an offset is not specified, then 0 is used.

Example:

XtCreateManagedWidget BUTTON1 button1 XmPushButton $FORM \    
     labelString:"Ok" \
     $(DtkshUnder $SEPARATOR) \
     $(DtkshAnchorLeft 10) \
     $(DtkshAnchorBottom 10)