Path: utzoo!attcan!uunet!peregrine!elroy!ames!pasteur!ucbvax!hplabs!hpfcdc!hpfclp!diamant From: diamant@hpfclp.SDE.HP.COM (John Diamant) Newsgroups: comp.windows.x Subject: Re: Multiple independant widgets Message-ID: <9740081@hpfclp.SDE.HP.COM> Date: 28 Jan 89 04:26:15 GMT References: <5799@phoenix.Princeton.EDU> Organization: HP SESD, Fort Collins, CO Lines: 21 > I know I can get these two windows as subwindows of a VPaned > or some such, but I was hoping the have them independent. > Do I need to do something special to do that? I assume by independent you mean that you want two toplevel windows (two windows that are children of the root window instead of being in the same child of the root window). The way to do that is to call XtCreateApplicationShell to create the second one. It will return a shell widget (just as XtInitialize does). In each, you can place one child widget. This description is based on the R2 toolkit. In R3, you should still be able to use the above, but XtInitialize is no longer the only way to intialize the toolkit and thus there are other variants (of which I'm not familiar as I'm pretty new to R3). John Diamant Software Engineering Systems Division Hewlett-Packard Co. ARPA Internet: diamant@hpfclp.sde.hp.com Fort Collins, CO UUCP: {hplabs,hpfcla}!hpfclp!diamant