Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!jade!eris!chapman
From: chapman@eris.BERKELEY.EDU (Brent Chapman)
Newsgroups: comp.sources.bugs
Subject: Re: Monthtool from comp.sources.unix
Message-ID: <6045@jade.BERKELEY.EDU>
Date: Tue, 24-Nov-87 00:23:46 EST
Article-I.D.: jade.6045
Posted: Tue Nov 24 00:23:46 1987
Date-Received: Fri, 27-Nov-87 02:13:04 EST
References: <5419@jhunix.UUCP> <1770@cognos.UUCP>
Sender: usenet@jade.BERKELEY.EDU
Reply-To: chapman@eris.BERKELEY.EDU (Brent Chapman)
Organization: UNIXversity of California at Berkeley
Lines: 50

In article <1770@cognos.UUCP> sarahm@batman.UUCP (Sarah Metcalfe) writes:
>In article <5419@jhunix.UUCP> apl_aimh@jhunix.UUCP (Marty Hall) writes:
>>when I clicked on any reminder icon, I got "^?" in the text window,
>>instead of that icon.  
>
>This problem has been reported to me by a number of people.  Someone figured
>out that it was a problem with SunOS 3.4;  unfortunately, I only have access
>to 3.2, so I was unable to try things out.  Luckily, I just received this fix
>from D. Brent Chapman (capmkt!brent) [thank you!].  It works for him under 3.4 
>and causes me no problems under 3.2:

My overly long and complicated commentary and fix deleted; it turns 
out there is a simple one-line fix that does the same thing.  BTW, yes,
I am capmkt!brent, and yes, that's not where this article is coming 
from.

Instead of all that crap I sent to Sarah (a late-night hack that should
never have seen the light of day), just put the following line _after_
the line that says "notesDsply = window_create(...);" (I don't have the 
source available on this machine, so I'm working from memory):

    window_set(notesDsply, WIN_FONT, notesFont, 0);

For some damn dumb reason, the 3.4 window_create() call ignores the WIN_FONT
parameter when initially setting up the window, but calling window_set()
immediately after window_create() works just fine.  I've been using monthtool
for a couple of weeks now with no other major problems.  It _is_ documented
that calls to window_create() for TEXTSW windows ignore WIN_FONT parameters
in the SunView Programmer's Guide (page 332), but the documentation is skimpy
at best, and seems to imply that WIN_FONT _never_ has any effect on TEXTSW
windows.

As far as I could tell, the overlapping "Today" and arrow buttons are because
the program can't find the "monthtool.font" file, and is using the default font
to display "Today", which is too large.  Make sure your path to the 
monthtool.font file is set correctly (in the Makefile, if I remember right),
and everything should work.

My users and I really love the tool; most of us have it rigged to come up open
to today's messages in our .suntools files so it's there when we log in.  Many
thanks to Sarah (& Co., if any; like I said, I don't have the source available 
to check right now) for a very useful tool.


-Brent
--
Brent Chapman					Capital Market Technology, Inc.
Senior Programmer/Analyst			1995 University Ave., Suite 390
{lll-tis,ucbvax!cogsci}!capmkt!brent		Berkeley, CA  94704
capmkt!brent@{lll-tis.arpa,cogsci.berkeley.edu} Phone: 415/540-6400