home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / tcl / 2313 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.4 KB  |  47 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!utcsri!skule.ecf!torn!nott!bnrgate!bcars267!bnr.ca!jamensky
  3. From: jamensky@bnr.ca (Mark Jamensky)
  4. Subject: Re: Setting resource for widget?
  5. Message-ID: <1993Jan7.171508.13229@bnr.ca>
  6. Keywords:  RESOURCE, FONT, WIDGETS, TCL/TK
  7. Sender: news@bnr.ca (usenet)
  8. Nntp-Posting-Host: bcarh27a
  9. Reply-To: jamensky@bnr.ca (Mark Jamensky)
  10. Organization: Bell-Northern Research Ltd.
  11. References:  <C0GIM2.JK4@news.rich.bnr.ca>
  12. Date: Thu, 7 Jan 1993 17:15:08 GMT
  13. Lines: 32
  14.  
  15.   I have an application defaults file called "Tk" in /usr/lib/X11/app-defaults.
  16. It contains the following which sets default fonts for certain widgets:
  17.  
  18. *Text.font:             9x15
  19. *Button.font:           9x15
  20. *Label.font:            9x15
  21. *Listbox.font:          9x15
  22. *Menu.font:             9x15
  23. *Entry.font:            9x15
  24. *Menubutton.font:       10x20
  25. *RadioButton.font:      9x15
  26. *Message.font:          9x15bold
  27.  
  28.   After some investigation I also discovered which widgets need to be changed
  29. in order to get reverse video.  They are:
  30.  
  31. *background:       black
  32. *foreground:       white
  33. *borderColor:      white
  34. *cursorBackground: white
  35. *selectBackground: white
  36. *selectForeground: black
  37. *selector:         white
  38.  
  39.   In my Tk initializations I do (among other things) "option readfile
  40. /usr/lib/X11/app-defaults/Tk".
  41.  
  42.   Hope this helps.
  43.  
  44.  
  45. --            | Bell-Northern Research - Ottawa | Conform or be cast out.
  46. Mark Jamensky | jamensky@bnr.ca  (613) 765-4942 | - Rush
  47.