[GRASS5] Re: two things more

Glynn Clements glynn.clements at virgin.net
Fri Oct 15 09:38:53 EDT 2004


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.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list