Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!BAE.BELLCORE.COM!aw From: aw@BAE.BELLCORE.COM (Andrew Wason) Newsgroups: comp.windows.x.motif Subject: Re: Question about Motif resource converters Message-ID: <9106032010.AA01042@bellcore.bellcore.com> Date: 3 Jun 91 20:10:15 GMT References: <1991Jun3.090811@wsl.dec.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 25 pa.dec.com!wsl.dec.com!klee@decwrl.dec.com (Ken Lee) writes: > In article <188@atesysv.UUCP>, lanzo@wgate.wgate.com (Mark Lanzo) writes: > |> What is the correct way to get all of the Motif resource type > |> converters registered when my application starts up? > > Widget set resource converters are usually registered when the vendor > shell widget class for that widget set is created. This is true of > both the Athena and Motif widget sets. Normally, the first widget you > would create is a vendor shell. Is there some reason you are not? If there is some reason you are not, you could call XtInitializeWidgetClass on the VendorShell class (or any subclass of XmPrimitive or XmManager). These widgets call XmRegisterConverters in their class_initialize methods. One reason you might want to do this is so you can use the XtVaTypedArg stuff when you create your first toplevel widget. Andrew _______________________________________________________________________________ Andrew Wason Bell Communications Research aw@bae.bellcore.com Piscataway, NJ bellcore!bae!aw