Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hp-pcd!hpcvlx!ben From: ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) Newsgroups: comp.windows.x Subject: Re: A question on Form widgets ... on motif. Message-ID: <100920289@hpcvlx.cv.hp.com> Date: 4 Feb 91 17:54:02 GMT References: <1991Feb1.235040.14018@msuinfo.cl.msu.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 44 > ... From the resource definition in Form.c, I would expect it to > complain about no "String to Immediate". > ... > You might try String to Immediate, since that is the default type > (even though the error message indicates otherwise). No No No. There are TWO resource type qualifiers in a resource specification. The first is the type of the resource and the second is the type of the default provided. XtRImmediate only occurs in the second position. It means that the default provided is of the appropriate type [history of Xt deleted]. The first specifier for attachment widgets is XtRWindow. This is the type expected. The resource conversion stuff in Xt will look for a converter to convert the type gotten from the database (usually string) to the type specified (in this case window). Since there is no such converter registered, a warning message is generated. > You are not doing anything wrong, what you are doing just isn't > supported. Yup. > At a glance it seems like adding a converter is the correct thing to > do. Yes, but be sure to add the right one ;-) > If you are creative enough, you might even be able to forward > reference widgets. ... Boy I doubt that! Unless you can guarantee that a certain widget will get a certain id, you can't do forward references without modifying the Form widget itself. ----------------------------------------------------------------------- Benjamin Ellsworth | ben@cv.hp.com | INTERNET Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP 1000 N.E. Circle | (USA) (503) 750-4980 | FAX Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------