home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!utcsri!skule.ecf!torn!nott!bnrgate!bcars267!bnr.ca!jamensky
- From: jamensky@bnr.ca (Mark Jamensky)
- Subject: Re: Setting resource for widget?
- Message-ID: <1993Jan7.171508.13229@bnr.ca>
- Keywords: RESOURCE, FONT, WIDGETS, TCL/TK
- Sender: news@bnr.ca (usenet)
- Nntp-Posting-Host: bcarh27a
- Reply-To: jamensky@bnr.ca (Mark Jamensky)
- Organization: Bell-Northern Research Ltd.
- References: <C0GIM2.JK4@news.rich.bnr.ca>
- Date: Thu, 7 Jan 1993 17:15:08 GMT
- Lines: 32
-
- I have an application defaults file called "Tk" in /usr/lib/X11/app-defaults.
- It contains the following which sets default fonts for certain widgets:
-
- *Text.font: 9x15
- *Button.font: 9x15
- *Label.font: 9x15
- *Listbox.font: 9x15
- *Menu.font: 9x15
- *Entry.font: 9x15
- *Menubutton.font: 10x20
- *RadioButton.font: 9x15
- *Message.font: 9x15bold
-
- After some investigation I also discovered which widgets need to be changed
- in order to get reverse video. They are:
-
- *background: black
- *foreground: white
- *borderColor: white
- *cursorBackground: white
- *selectBackground: white
- *selectForeground: black
- *selector: white
-
- In my Tk initializations I do (among other things) "option readfile
- /usr/lib/X11/app-defaults/Tk".
-
- Hope this helps.
-
-
- -- | Bell-Northern Research - Ottawa | Conform or be cast out.
- Mark Jamensky | jamensky@bnr.ca (613) 765-4942 | - Rush
-