1 /* $Header: /cvsroot/lesstif/lesstif/test/Xm/textf/test1.c,v 1.4 2002/04/01 13:36:36 amai Exp $ */
2
3 #include <stdlib.h>
4 #include <Xm/Xm.h>
5 #include <Xm/TextF.h>
6
7 int
main(int argc,char ** argv)8 main(int argc, char **argv)
9 {
10 Widget toplevel, one;
11 XtAppContext app;
12
13 XtSetLanguageProc(NULL, NULL, NULL);
14
15 toplevel = XtVaAppInitialize(&app,"Label",NULL,0,&argc,argv,NULL,NULL);
16
17 one = XtVaCreateManagedWidget("one",xmTextFieldWidgetClass,toplevel,
18 XmNcolumns, 10, NULL);
19
20 XtRealizeWidget(toplevel);
21
22
23 {
24 static XtWidgetGeometry Expected[] = {
25 CWWidth | CWHeight , 57, 73, 78, 31, 0,0,0, /* one */
26 };
27 PrintDetails(toplevel,Expected);
28 };
29 LessTifTestMainLoop(toplevel);
30
31 exit(0);
32 }
33
34