[GRASS5] Re: two things more

Michael Barton michael.barton at asu.edu
Fri Oct 15 13:43:13 EDT 2004


Just a thought. It might be somewhat more accessible if the default font for
tcltk in GRASS 5.7 was set via an environment variable in the .grassrc57
file.

Michael


On 10/15/04 6:38 AM, "Glynn Clements" <glynn.clements at virgin.net> wrote:

> 
> Michael Barton wrote:
> 
>>> 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.
> 
> The font is Tk's default font. This can be set via X resources, e.g.
> 
> wish*font: -adobe-times-medium-r-*-*-12-*-*-*-*-*-iso8859-1
> 
> [Note: this has to come after any generic *font setting in the
> ~/.Xdefaults. Tk parses the ~/.Xdefaults file itself rather than using
> the Xrm* functions, and doesn't implement the priority mechanism
> correctly.]
> 
>>> 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.
> 
> Tk understands a MouseWheel event, although the 8.0 documentation
> suggests that it might be Windows-specific. I don't know whether later
> versions of Tk implement this on Unix, or whether they appear as
> Button4 or Button5 events. In any case, the ScrolledWindow,
> ScrollableFrame etc widgets don't handle these events.

______________________________
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