Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!harpsichord.cis.ohio-state.edu!walton From: walton@harpsichord.cis.ohio-state.edu (Brian Walton) Newsgroups: comp.windows.x,osu.windows.x Subject: Mapping widgets with XtRealizeWidget Message-ID: <44026@tut.cis.ohio-state.edu> Date: 18 Apr 89 17:52:47 GMT Sender: news@tut.cis.ohio-state.edu Reply-To: Followup-To: comp.windows.x Distribution: usa Organization: Ohio State University Computer and Information Science Lines: 26 Help! I am a new athena widget user and I would like to map a form widget and all of it's nested children on the screen before beginning my mainloop() procedure. Within the form widget I have several viewport widgets, where each viewport manages a single asciiDiskWidgetClass text widget. The code I am using is : toplevel = XtInitialize("main","Demo",NULL,0,&argc,argv); ..... framebox = XtCreateManagedWidget("Interface",formWidgetClass, toplevel, formargs,XtNumber(formargs)); /* Create the other widgets and insert in framebox */ createwidgets(); XtRealizeWidget(toplevel); /* * At this point, I would like to map the framebox, and all its * children on the screen. Also display the text of each text * widget within framebox. */ Do_Something_Else(); XtMainLoop();