I've set it in the main and init functions as you suggested.  Here is
what I put in both of them:

global fg;
global bg;
set fg "black"
set bg "white'

I'm still getting the variable undefined error in test mode.  However,
I just saved it and ran it, and things seem to be working from there. 
Thanks for the help.

Ed


On  7 Dec , Rick Macdonald wrote:
> 
>> Look under File/Preferences you'll find a check box "Save global
> variables"
>> Try it.
> 
> If you don't already use this option, I'd say don't. It never made any
> sense to me, and caused all sorts of problems.
> 
> When you save an app from vTcl, it saves the current values of the
> variables, not the values that you set for startup. Thus, depending on the
> application, it doesn't start up in a reasonable known state.
> 
> It's been a long time, but I believe Stewart is going to remove this
> feature altogether.
> 
> It's much more reasonable and predictable to set variable defaults in the
> init proc (or main) that vTcl always provides.
> 
> ...RickM...
> 
> 
> ---------------------------------------------------------------------------
> To unsubscribe from the Visual Tcl mailing list, please send a message
> to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
> message body (where [EMAIL PROTECTED] is your e-mail address).

-- 


--------------------------------------------------------------------------------
                                        |
  Ed Coates                             | Jesus Saves... Passes to Moses
  [EMAIL PROTECTED]                  | He shoots!   He scores!
                                        |
--------------------------------------------------------------------------------

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to