Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!sol.ctr.columbia.edu!emory!hubcap!news From: jaysun@citron..cs.clemson.edu (Jay Williamson - System Manager) Newsgroups: comp.windows.x.motif Subject: How to create separate windows ?? Message-ID: <1991Apr22.015111.19629@hubcap.clemson.edu> Date: 22 Apr 91 01:51:11 GMT Sender: news@hubcap.clemson.edu (news) Organization: Clemson University Computer Science Dept. Lines: 54 I am new to Motif programming so bear with me. We are running Motif 1.1.1 and X11 R4 patch level 18. I want to create an application that has a control panel and another completely separate window also. This should be very simple yet a can't make it work. I have looked at the demos and I follow their lead but with no luck. I have tried many different ways an my present stage is below. Here is a code fragment with many extras taken out: XtToolkitInitialize(); app_context = XtCreateApplicationContext(); display = XtOpenDisplay(app_context, NULL, argv[0], "MNSFEdit", NULL, 0, &argc, argv); toplevel = XtAppCreateShell (argv[0], NULL, applicationShellWidgetClass, display, arglist, n); mainW = XmCreateMainWindow (toplevel, "mainW", arglist, n); XtManageChild (mainW); pageW = XmCreateBulletinBoard (toplevel, "PageW", arglist, n); XtManageChild (pageW); controlW = XmCreateDialogShell (toplevel, "PageDisplayControlPanel", arglist, n); XtManageChild(controlW); XtRealizeWidget(toplevel); XtAppMainLoop(app_context); ------------------------------------- Something like this would be nice with mainW and controlW being different windows entirely. toplevel / \ mainW controlW / pageW I understand most of the Widget/child stuff but I am a little fuzzy on how the top level widget ties things together. Reply straight to me if possible. Thanks, Jay Williamson, Systems Manager Clemson University jaysun@cs.clemson.edu Computer Science Dept. (803) 656-2639 Clemson, S.C. 29634-1906