Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!retina.anatomy.upenn.edu!joe From: joe@retina.anatomy.upenn.edu (Joe Panico) Newsgroups: comp.windows.x Subject: Does the Athena Form widget work under X11/R3 Keywords: Athena Form widget Message-ID: <28738@netnews.upenn.edu> Date: 22 Aug 90 19:07:03 GMT Sender: news@netnews.upenn.edu Reply-To: joe@retina.anatomy.upenn.edu (Joe Panico) Organization: UPENN Lines: 120 Have been yet unable to coerce the Athena Form widget into properly placing its children relative to one another. A simple representative example of the problem follows: ---------begin xt source ----------------- /* * Copyright 1989 O'Reilly and Associates, Inc. * See ../Copyright for complete rights and liability information. */ /* * xform.c - simple button form */ /* * So that we can use fprintf: */ #include /* * Standard Toolkit include files: */ #include #include #include /* * Public include files for widgets used in this file. */ #include #include /* * quit button callback function */ /*ARGSUSED*/ void Quit(w, client_data, call_data) Widget w; caddr_t client_data, call_data; { exit(0); } /* * "Press me!" button callback function */ /*ARGSUSED*/ void PressMe(w, client_data, call_data) Widget w; caddr_t client_data, call_data; { fprintf(stderr, "Thankyou!\n"); } main(argc, argv) int argc; char **argv; { Widget form, quit, pressme, topLevel; topLevel = XtInitialize( argv[0], /* application name */ "XBox2", /* application class name */ NULL, /* application resources (not used) */ 0, /* application resource count */ &argc, /* command line argument count */ argv); /* command-line string */ form = XtCreateManagedWidget( "form", /* widget name */ formWidgetClass, /* widget class */ topLevel, /* parent widget*/ NULL, /* argument list*/ 0 /* arglist size */ ); pressme = XtCreateManagedWidget( "pressme", /* widget name */ commandWidgetClass, /* widget class */ form, /* parent widget*/ NULL, /* argument list*/ 0 /* arglist size */ ); quit = XtCreateManagedWidget( "quit", /* widget name */ commandWidgetClass, /* widget class */ form, /* parent widget*/ NULL, /* argument list*/ 0 /* arglist size */ ); XtAddCallback(quit, XtNcallback, Quit, 0); XtAddCallback(pressme, XtNcallback, PressMe, 0); XtRealizeWidget(topLevel); XtMainLoop(); } ---------------------end xt source----------------- ---------------------begin app-defaults----------------- *pressme*label: Press Me *quit*label: Quit *Command*background: orange *pressme*fromHoriz: quit !*quit*fromHoriz: pressme ---------------------end app-defaults----------------- This is the error message above program produces: X Toolkit Warning: Cannot convert string "quit" to type Widget Would be eternally gratefull for any insights into this problem. -JP Communism is the long hard road between capitalism and capitalism. - Contemporary Polish diplomat