home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.interviews
- Path: sparky!uunet!think.com!mintaka.lcs.mit.edu!kanga.lcs.mit.edu!dave
- From: dave@kanga.lcs.mit.edu (David Sternlicht)
- Subject: Re: names of glyphs available to .Xdefaults
- Message-ID: <1992Nov21.145530.26619@mintaka.lcs.mit.edu>
- Sender: news@mintaka.lcs.mit.edu
- Organization: MIT Laboratory for Computer Science
- References: <PSHANNON.92Nov17144618@iapetus.cv.nrao.edu>
- Distribution: comp
- Date: Sat, 21 Nov 1992 14:55:30 GMT
- Lines: 37
-
- >Where do I find the names of those glyphs whose properties may be
- >manipulated through an .Xdefaults file?
- >
- >For example, this works
- >
- > MyApp*HScrollBar*flat: red
- >
- >but this doesn't
- >
- > MyApp*HScrollBar*Thumb*flat: red
- >
- >So "HScrollBar", "flat" are recognized, but "Thumb" is not.
- >
- >Is there some way -- perhaps even cruising throught the iv source --
- >that I can use to learn which glyphs, with what names, can be
- >manipulated this way?
-
- I think you may be confusing glyphs with widgets, and their "automatic" resources.
- You have to associate a glyph with a style. The components you get from widgetkit
- have this done for you. So HScollBar is a widgetkit component, whereas Thumb
- is not. The place to look is src/InterViews/kit.c although this sort of thing should
- be documented somewhere. Here are some settings that work for idemo:
-
- Idemo*HScrollBar*flat: red
- Idemo*VScrollBar*flat: green
- Idemo*Panner*flat: blue
- Idemo*PaletteButton*flat: orange
- Idemo*RadioButton*flat: cyan
- Idemo*ToggleButton*flat: purple
- Idemo*PushButton*flat: brown
-
-
- --
-
- dave sternlicht
- mit X consortium
- dave@expo.lcs.mit.edu
-