On Sat, 1 Nov 1997 [EMAIL PROTECTED] wrote:
> On 1 Nov , Rick Macdonald wrote:
> >
> > Under the menu item File/Preferences, make sure "Save global variable
> > values" is _not_ selected.
> >
> > While in vTcl, you'll see the platform name in your label. Don't worry
> > about that. When you save the application and run it elsewhere, it will
> > show the proper value there.
> >
> > ...RickM...
> >
>
> I checked out my preferences, and it's not selected. I did a test
> anyways, and there was a -text Linux entry there. I'm running tcl/tk
> 8.0 if that makes any difference.
Ah, I see. Like this, right?
label $base.lab18 \
-background gray85 -borderwidth 1 -relief raised -text Linux \
-textvariable tcl_platform(os)
I just ran this on a Solaris platform and the button comes up saying
SunOS, like it should. The -textvariable immediately overrides the -text
so you never see Linux.
You can test this by manually changing Linux to something else and running
the app. It should come up with Linux again.
So, in this case it sems OK to me, but there could be a case where this is
a problem.
...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).