home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / intervie / 3230 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.6 KB  |  50 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!think.com!mintaka.lcs.mit.edu!kanga.lcs.mit.edu!dave
  3. From: dave@kanga.lcs.mit.edu (David Sternlicht)
  4. Subject: Re: names of glyphs available to .Xdefaults
  5. Message-ID: <1992Nov21.145530.26619@mintaka.lcs.mit.edu>
  6. Sender: news@mintaka.lcs.mit.edu
  7. Organization: MIT Laboratory for Computer Science
  8. References:  <PSHANNON.92Nov17144618@iapetus.cv.nrao.edu>
  9. Distribution: comp
  10. Date: Sat, 21 Nov 1992 14:55:30 GMT
  11. Lines: 37
  12.  
  13. >Where do I find the names of those glyphs whose properties may be
  14. >manipulated through an .Xdefaults file?
  15. >
  16. >For example, this works
  17. >
  18. >            MyApp*HScrollBar*flat: red
  19. >
  20. >but this  doesn't
  21. >
  22. >           MyApp*HScrollBar*Thumb*flat: red
  23. >
  24. >So "HScrollBar", "flat" are recognized, but "Thumb" is not.
  25. >
  26. >Is there some way -- perhaps even cruising throught the iv source --
  27. >that I can use to learn which glyphs, with what names, can be
  28. >manipulated this way?
  29.  
  30. I think you may be confusing glyphs with widgets, and their "automatic" resources.
  31. You have to associate a glyph with a style.  The components you get from widgetkit
  32. have this done for you.  So HScollBar is a widgetkit component, whereas Thumb
  33. is not.  The place to look is src/InterViews/kit.c although this sort of thing should
  34. be documented somewhere.  Here are some settings that work for idemo:
  35.  
  36. Idemo*HScrollBar*flat: red
  37. Idemo*VScrollBar*flat: green
  38. Idemo*Panner*flat: blue
  39. Idemo*PaletteButton*flat: orange
  40. Idemo*RadioButton*flat: cyan
  41. Idemo*ToggleButton*flat: purple
  42. Idemo*PushButton*flat: brown
  43.  
  44.  
  45. -- 
  46.             
  47.                 dave sternlicht
  48.                 mit X consortium
  49.                 dave@expo.lcs.mit.edu
  50.