Bob,

config is not a command.  In Ricks example, "." is the command - it's actually
the root widget path.  All instances of Tk widgets become commands.  config,
cget, etc. are options which operate on the widget.

It is lame that the manuals and most books I've seen don't really make this
clear.

Cheers,
Randy

"Bartis, Robert M (Bob)" wrote:

> I wasn't sure about the config command. I tried to look it up in the tcl
> help but didn't find it. Am I missing something?
>
> Bob
>
> > ----------
> > From:         Rick Macdonald[SMTP:[EMAIL PROTECTED]]
> > Reply To:     [EMAIL PROTECTED]
> > Sent:         Friday, May 26, 2000 11:26 PM
> > To:   '[EMAIL PROTECTED]'
> > Subject:      Re: [vtcl-user] Color map
> >
> > On Fri, 26 May 2000, Bartis, Robert M (Bob) wrote:
> >
> > >
> > >     I have developed an application for the UNIX environment 5.5.1 or
> > > later. The app contains a text area which uses the defaults of a white
> > > background and black text. It also contains a entry widget containing a
> > > similar white background and black text.
> > >
> > >     The problem I am having is when the app is run on other machines,
> > > customer machines the text sometimes appears in white, making it
> > difficult
> > > to read on a white background. I am assuming this has something to do
> > with a
> > > color map problem ,but I'm not sure where to start to correct it. Any
> > help
> > > would be greatly appreciated.
> >
> > I have problems with Solaris CDE settings overriding Tk defaults, so I use
> > this in my apps:
> >
> >     . config -bg grey85
> >     option add *foreground black user
> >     option add *background grey85 user
> >     option add *highlightBackground grey85 user
> >
> > ...RickM...
> >
> >
> > _______________________________________________
> > vtcl-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/mailman/listinfo/vtcl-user
> >
>
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/vtcl-user

--
Randy Reichenbach - Software Engineer
Virage Logic - Bellevue WA




_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

Reply via email to