The first area consists of two Label widgets, two TextField widgets, and a Separator widget that separates the first and second areas.
The following code segment creates and positions the first Label widget and positions it within the Form using the DtkshAnchorTop and DtkshAnchorLeft convenience functions:
XtCreateManagedWidget SDLABEL sdlabel XmLabel $FORM \ labelString:"Search Directory:" \ $(DtkshAnchorTop 12) \ $(DtkshAnchorLeft 10)
The following code segment creates and positions the first TextField widget. Note that it is positioned in relation to both the Form and the Label widget.
XtCreateManagedWidget SD sd XmText $FORM \ columns:30 \ value:"." \ $(DtkshAnchorTop 6) \ $(DtkshRightOf $SDLABEL 10) \ $(DtkshAnchorRight 10) \ navigationType:EXCLUSIVE_TAB_GROUP XmTextFieldSetInsertionPosition $SD 1
The remaining Label widget and TextField widget are created in the same manner.
The Separator widget is created as a child of the Form widget and positioned under the second TextField widget.
XtCreateManagedWidget SEP sep XmSeparator $FORM \ separatorType:SINGLE_DASHED_LINE \ $(DtkshUnder $FNP 10) \ $(DtkshSpanWidth)