Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!odi!mlm
From: mlm@odi.com (Mitchell Model)
Newsgroups: comp.windows.x
Subject: Re: help
Message-ID: <1989Aug15.221502.3253@odi.com>
Date: 15 Aug 89 22:15:02 GMT
References: <3982@ncar.ucar.edu> <1989Aug15.213710.3103@odi.com>
Organization: Object Design, Inc.
Lines: 42
In-reply-to: mlm@odi.com's message of Tue, 15 Aug 89 21:37:10 GM
A couple of adjustments to the code I just posted for a confirm
widget:
First of all, it includes confirm.h, which is just:
#include
#include
#include
Bool Confirm(/* toplevel, msg */);
and I'm not sure whether all of these are really needed or are left
over from an earlier stage of evolution.
It includes stdio.h, which it doesn't need (it probably once did).
It includes xutil.h, which is my collection of x hacks from which
ProcessOneEvent was taken. Replace that include with the definition
of ProcessOneEvent given above. I don't think it uses anything else
from my xutil.
More importantly, I neglected to incorporate a solution to the
"window-manager menu shows through dialog box" bug I asked about last
week. I received a reply to that query which leads to the following
simple fix to code like the above:
put somewhere:
static String CatchButtonTranslation = ",:\n";
put before form = XtCreateManagedWidget("form", ...)
SetArg(XtNtranslations,
XtParseTranslationTable(CatchButtonTranslation));
There may well be other problems, in which case send mail and I might
be able to help.
--- Mitchell Model
--
Mitchell L Model
Director, HeadStart Program
Object-Design, Inc.