Stewart Allen wrote:
>
> > Thomas Porter wrote:
> >
> > BTW is there a way to set the default font size for labels and entries?
>
> vtcl does not currently store an option table for these. the proper way
> to do this is to use the tk "option" command. for now you can add these
> at beginning of the vt.tcl or lib/global.tcl files. when 1.11 comes out
> you can move these into the .vtclrc file. right now vtcl will re-write
> that file each time losing your settings.
>
> -stewart-
I have introduced in lib/globals.tcl theese lines :
option add *Label.font
-Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-*
option add *Text.font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-*
option add *Button.font
-Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-*
Indeed, the default font for labels and buttons is Medium now, but
because in my source generated with vtcl, I found explicit declared the
font for the widget:
button $base.b1 \
-command exit \
-font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-* -padx 9
\
-pady 3 -text button
==================================================
My question is :
Where should I modify the settings so, if no font is declared for button
inside the vtcl source, the appearance should be : -Medium- ... and so
on ?
==================================================
For a button declared like this :
button $base.b1 - command exit -padx 9 -pady 3 -text Exit
somewhere in a setting file, wish uses ...-Bold-... font to display the
button. That's why I thought it is a wish/Tk option.
Is there any other command that I could put into the "init" or "main"
procedure and from that point, all new declared widgets without any
explicit font will be displayed with ...-Medium-.. ?
Sorry for reiterating the question !
Constantin Teodorescu
FLEX Consulting Braila
E-mail : [EMAIL PROTECTED]