Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!news From: veerabad@buster.cps.msu.edu (Vibhu Veerabadrappa) Newsgroups: comp.windows.x Subject: A question on Form widgets ... on motif. Message-ID: <1991Feb1.235040.14018@msuinfo.cl.msu.edu> Date: 1 Feb 91 23:50:40 GMT Sender: news@msuinfo.cl.msu.edu Distribution: usa Organization: Michigan State University, College of Engineering Lines: 41 I had a problem using the form widget class: I created a form widget as a child of the root widget. Under this form widget, I created some pushbutton widgets as children, and I tried to space them using the resource file. Specifically, I tried to position some pushbuttons with respect to the form's right or top edge, and it works fine. I say: *quit_button.topAttachment: attach_form But if I try to specify the position wrt a widget, like: *sep1.topAttachment: attach_widget <--- to attach to a widget *sep1.topWidget: quit_button <--- name of the already created widget, I get an error message when I run the application program. The error message is something like: ... no type converter specified for String to Window convertion ^^^^^^^^ Note that it says String to Window ... which is the first surprise. 1. So I tried to write a String to Window type converter based on the example in Young's book ... (pg 61) but I do not know what the type of Window is. I tried %d, but it would not work. 2. Another surprise is that if I burn the same information in the program using XtSetValues, it works fine. 3. The problem is only if I try to position wrt a widget. I do not seem to have any problems with others, like attach_form, attach_position etc. Can any of you please let me know if it is a legitimate problem, or am I doing something wrong. I would appreciate it if you can send me mail, as I do not read this group often. My address is veerabad@frith.egr.msu.edu Thanks a lot.