Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!dali.cs.montana.edu!masscomp!rpi!pattersw From: pattersw@cs.rpi.edu (William Patterson) Newsgroups: comp.windows.x Subject: mapping multiple (independent) athena widgets Message-ID: <_Z3$!T%@rpi.edu> Date: 27 Jul 90 14:50:29 GMT Organization: RPI Computer Science Dept. Lines: 58 I am trying to display 2 independent sets of widgets (i.e. both are direct children of the root widget). However, when XtRealizeWidget(rootWidget) is called, only one of the children is mapped. Below is a simple example of what I want to do. It creates 2 label widgets, but only one of them is mapped. Does anyone know how to get both of them to show up? ============================================================================= #include #include #include #include String fallback_resources[] = { "*Label.Label: This is xlabel", NULL }; static XrmOptionDescRec options[] = { {"-label", "*Label.label", XrmoptionSepArg, NULL} }; main(argc, argv) int argc; char **argv; { static void Syntax(); XtAppContext app_con; Widget toplevel; toplevel = XtAppInitialize(&app_con, "Xlabel", options, XtNumber(options), &argc, argv, fallback_resources, NULL, ZERO); (void) XtCreateManagedWidget("label", labelWidgetClass, toplevel, NULL, ZERO); (void) XtCreateManagedWidget("label2", labelWidgetClass, toplevel, NULL, ZERO); XtRealizeWidget(toplevel); XtAppMainLoop(app_con); } ================================== end ===================================== -- ----------------------------------- Bill Patterson pattersw@turing.cs.rpi.edu Computer Science Department Rensselaer Polytechnic Institute Troy, NY. "Jane, you ignorant slut." -----------------------------------