Common Desktop Environment: Desktop KornShell User's Guide

DtkshSpanWidth and DtkshSpanHeight

These convenience functions simplify the specification of certain classes of form constraints. They provide a way of configuring a component so that it spans either the full height or width of the form widget. This behavior is accomplished by attaching two edges of the component (top and bottom for DtSpanHeight, and left and right for DtSpanWidth) to the form widget. The component typically resizes whenever the form widget is resized. The ATTACH_FORM constraint is used for all attachments.

Usage:

DtkshSpanWidth [leftOffset rightOffset]  
DtkshSpanHeight [topOffset bottomOffset]

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

Example:

XtCreateManagedWidget SEP sep XmSeparator $FORM \             
          $(DtkshSpanWidth 1 1)