niebres@mct-1.UUCP (Caroline Niebres) (01/05/91)
Hello All! 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 If necessary, two rows is acceptable. Does anyone have a good idea how to do this in an easy way? I know I could use a bitmap and rotate the text, but that sounds like more work than I would like to do. The other way was to set up three rows of numbers and deal with all those numbers! Thanks in advance. Caroline Niebres Micro Component Technology, Inc. St. Paul, MN E-mail: niebres@mct.com Phone: (612) 482-6335 FAX: (612) 482-6492
converse@expo.lcs.mit.EDU (01/09/91)
> 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