Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!winvmc.vnet.ibm.com!kolban From: kolban@winvmc.vnet.ibm.com ("Neil Kolban") Newsgroups: comp.windows.x.motif Subject: Label widget, fontLists and resources Message-ID: <9103202005.AA29094@ucbvax.Berkeley.EDU> Date: 20 Mar 91 19:56:05 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 18 *** NOVICE ALERT *** I have just started learning Motif and have the following question: I understand that an XmLabel widget has its own XmLabel resource set which is not inherited from any parent. So, if I create a label widget, it will have its own copy of its resource set. Two questions: 1) How can I specify that I want all subsequent Label widgets to have a particular font (fontList resource)? Do I have to specify this everytime I create a Label widget? I understand that I can use an .Xdefaults file to specify this for my application but I am now curious as to how this can be achieved from within my application. 2) How can I query what the current default value for the XmNfontList resource for a Label Widget will be without first creating it? Cheers, Neil Kolban (kolban@winvmc.vnet.ibm.com)