Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!metasoft!yong From: yong@metasoft.UUCP (Yongdeng Chen) Newsgroups: comp.windows.x Subject: Re: Instrinsics resource question Message-ID: <722@metasoft.UUCP> Date: 28 Feb 89 16:00:50 GMT References: <1489@ncar.ucar.edu> Organization: Meta Software Corporation, Cambridge MA Lines: 37 In article <1489@ncar.ucar.edu>, clyne@redcloud.ucar.edu (John Clyne) writes: > > Hello, Can someone tell me why the following code fragment won't return > the font used by the label widget? > > n = 0; > XtSetArg(args[n], XtNlabel, "label"); n++; > label = XtCreateManagedWidget( "label", labelWidgetClass, panel, > args, n ); > /* > * get font > */ > n = 0; > XtSetArg(args[n], XtNfont, &font); n++; > XtGetValues(comm, args, n); > I had similar problem with XtGetValues(comm, args, n); It seems to me that XtGetValues is not doing anything. For example: int x; x = 200; n = 0; XtSetArg(args[n], XtNx, &x); n++; XtGetValues(comm, args, n); you will have x == 200 here. Am I missing something also? ____________________________________________________________ yong%metasoft@bbn.com Yongdeng Chen Meta Software Corporation 150 Cambridge Park Drive Cambridge, MA 02140 (617)576-6920