Rudolf Lindner wrote:
>
> I have tried to use variable font names for message widgets,
> so that I am able to use different font names under unix and
> windows. But since vtcl generates the procedures that build the
> windows, it is not possible to use variables here ...
Use the named font features of Tk8.x. The following commands should give
you an idea of what they can do. Just paste them one at a time into in
interactive wish8.0 shell and watch the changes.
button .b1 -text button
button .b2 -text button
pack .b1 .b2
font create headerfont -family {{Arial} 14}
.b2 config -font headerfont
font config headerfont -size 20
Then you can check for the platform and set default fonts accordingly:
if {$tcl_platform(platform) == "unix"} {
...etc...
}
--
...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).