Xref: utzoo comp.windows.x.motif:1445 comp.windows.x:30575 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!bcm!dimacs.rutgers.edu!seismo!seismo.CSS.GOV!bonnett From: bonnett@seismo.CSS.GOV (H. David Bonnett) Newsgroups: comp.windows.x.motif,comp.windows.x Subject: how to change the name of a widget Keywords: UIL Motif Widget Resource Manager Message-ID: <49269@seismo.CSS.GOV> Date: 13 Dec 90 01:07:00 GMT References: <328@comtst.UUCP> Sender: usenet@seismo.CSS.GOV Reply-To: bonnett@seismo.CSS.GOV (H. David Bonnett) Followup-To: comp.windows.x.motif Distribution: na Organization: Center for Seismic Studies, Arlington, VA Lines: 25 This is partly a UIL question and partly an Xt (I think) question. I have a motif app that uses UIL to specify a bunch of widgets, including menu buttons, and a whole lot of forms with TextFields in them. I have been using c-identifier-like names eg: select_db_b1 for the object names. This name is then passed by uil to the XtCreateWidget call. Unfortunately this is not good for matching resources to the widgets. What my question comes down to is the following: 1.) Is there a way to tell UIL to use a different name for the XtCreateWidget call. The MrmCreateCallback happens after the Create call. 2.) Is there a (semi-elegant) way to change the name (widget->core->name) of a widget that has been created. I could possibly do the change by brute force and set the field myself, but I wonder what the side effects would be..... Have others run into this or do you just generally choose better names for your widgets? Thanks in advance for any and all answers. -dave bonnett; Center for Seismic Studies bonnett@seismo.css.gov -