[GRASS5] Re: two things more

Michael Barton michael.barton at asu.edu
Thu Oct 14 20:26:55 EDT 2004



On 10/14/04 3:08 PM, "Maciek Sieczka" <werchowyna at pf.pl> wrote:

> Michael,
> 
> How do I change font in the 5.7 tcltkgrass modules?

The simple answer is that the module font is not changeable by the user.
These modules are automatically generated from each command and the font
used is determined in the command parser code. This IS changeable, of
course, but I don't know how to do it offhand and it isn't something that
folks can change normally.

In GRASS 5.3, all the command dialogs were generated by tcltkgrass. This
meant that I (or someone) had to manually write code for each one (about
400). Then we had to change that code for any change to the command (this
recently happened for a few modules). In GRASS 5.7, I only need to list the
command in the main menu hierarchy. Anytime the command is updated, the
tcltk dialog is automatically updated also. No need for anyone to manually
change it. Of course, this also makes for less user choice in the appearance
of the dialogs. 

A module always *could* be written to set the font. I looked a bit to see if
I could find where the font is set for these dialogs and failed so far. It
is probably just a single line somewhere. If it is in an ascii file that
sets interface parameters (e.g., gui.tcl) it could be set via a shell script
or tcltk script. If it is in one of the compiled C-code modules, it would be
more difficult.

> Why doesn't the mouse
> wheel work in the upper part of the module's window?

I don't know. I assume it is part of how an input device interacts with
tcltk.

Michael

> 
> Best,
> Maciek
> 

______________________________
Michael Barton, Professor of Anthropology
School of Human Diversity and Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton




More information about the grass-dev mailing list