Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: converse@expo.lcs.mit.EDU Newsgroups: comp.windows.x Subject: Re: Labels Message-ID: <9101082117.AA10296@excess.lcs.mit.edu> Date: 8 Jan 91 21:17:02 GMT References: <9101042055.AA21593@mct-1.com> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 27 > I have a question about labels. What I need to do is > to have the numbers 1-128 or 129-256 displayed in the > following manner: > > 0 0 0 . . . 1 > 0 0 0 . . . 2 > 1 2 3 . . . 8 This is explained in Appendix A "Resource File Format" of the Xt specification. The value of the XtNlabel resource can have newline characters in it, and the R4 Athena Label widget, and its subclasses, will do the right thing. You could set the resource in the application program, or in an application defaults file. If you need to change the labels of the widgets, I suppose you have to do it from the application. In an application defaults file, you might write: *label001.Label: 0\n0\n1 *label002.Label: 0\n0\n2 *label003.Label: 0\n0\n3 ... *label128.Label: 1\n2\n8 Donna Converse