Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!asuvax!ukma!seismo!bonnett From: bonnett@seismo.CSS.GOV (H. David Bonnett) Newsgroups: comp.windows.x.motif Subject: Re: Setting Widget Resources Message-ID: <49576@seismo.CSS.GOV> Date: 21 Apr 91 17:59:33 GMT References: <1991Apr18.003956.6310@latcs2.lat.oz.au> Sender: usenet@seismo.CSS.GOV Distribution: comp.windows.x.motif Organization: Center for Seismic Studies, Arlington, VA Lines: 30 In article <1991Apr18.003956.6310@latcs2.lat.oz.au>, arthur@latcs2.lat.oz.au (Arthur Proestakis) writes: |> Can all the resources of a widget be set in a resource file? |> |> I am trying to do the following in a resource file: |> |> app*widget.bottomAttachment: ATTACH_WIDGET |> app*widget.bottomWidget: bottom_widget |> |> and the error I get is: |> |> X Toolkit Warning: Cannot convert string "bottom_widget" to type Widget |> |> "bottom_widget" does exist in the program, therefore should I assume |> this can't be done? The problem with this is that the attachment argument for BottomWidget expects to get a Widget Pointer, not the Name of the widget. It would be nice if there were and conversion routine to allow for this, but there is not one at present (and I am not sure that it that the process is meant to handle conversion to values not resolvable at program startup. Any ideas?) Doug Young mentions this problem in his book. I end up setting these in the code through XtSetArgs. Hope this helps, -- -dave bonnett- Center for Seismic Studies; Arlington, VA bonnett@seismo.css.gov : All standard disclaimers apply.