/* $Header: /cvsroot/lesstif/lesstif/test/Xm/form/test27.c,v 1.6 2001/05/16 09:23:15 amai Exp $ */ #include #include #include #include #include #include #include #include #include #include "../../common/Test.h" static char *FallBack[] = { "*.borderWidth: 1", NULL }; int main(int argc, char **argv) { XtAppContext app; Widget Shell; Widget Form; Widget BottomLabel; XtSetLanguageProc(NULL, NULL, NULL); Shell = XtVaAppInitialize(&app, "Shell", NULL, 0, &argc, argv, FallBack, NULL); Form = XmCreateForm(Shell,"Form",NULL,0); BottomLabel = XmCreateLabel(Form,"BottomLabel",NULL,0); XtVaSetValues(BottomLabel, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 50, NULL); XtManageChild(BottomLabel); XtManageChild(Form); XtRealizeWidget(Shell); { static XtWidgetGeometry Expected[] = { CWWidth | CWHeight, 0, 0, 72, 38, 0,0,0, /* Form */ CWWidth | CWHeight | CWX | CWY, 0, 0, 70, 17, 0,0,0, /* two */ CWWidth | CWHeight, 0, 0, 144, 76, 0,0,0, /* Form */ CWWidth | CWHeight | CWX | CWY, 0, 0, 70, 36, 0,0,0, /* two */ }; PrintDetails(Shell, Expected); LessTifTestWaitForIt(Shell); LessTifTestResizeWidget(Shell, 144, 76); PrintDetails(Shell, Expected); LessTifTestMainLoop(Shell); } exit(0); }