Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!quanta.eng.ohio-state.edu!kcgl1.eng.ohio-state.edu!DAVISM From: DAVISM@kcgl1.eng.ohio-state.edu (Michael T. Davis) Newsgroups: comp.windows.x Subject: RE: Two simple user interfaces wanted (Summary) Message-ID: <5076@quanta.eng.ohio-state.edu> Date: 6 Jun 90 16:21:32 GMT References: <5073@quanta.eng.ohio-state.edu> Sender: news@quanta.eng.ohio-state.edu Organization: Ohio State University Lines: 41 In article <5073@quanta.eng.ohio-state.edu>, I wrote: > > I am modifying a program to be more user friendly under X (actually >DECwindows 2.0 under VMS 5.3-1, but since I'm writing with "pure" Xlib, it >should be pretty much the same). Before I go off and possibly re-invent the >wheel, I was wondering if anyone had a couple of Xlib-based routines to perform >the following: > > 1) Given/passed a character string, display the string and two > push-buttons labelled "Yes" and "No"; for example: > >[figure deleted] > > 2) Given/passed a character string, display the string, a text > entry field and two push-buttons labelled "OK" and "Cancel"; > for example: > >[rest deleted] A few responses suggested that I use a toolkit to perform these actions. I'd rather avoid the extra performance overhead, minimal though it may be, of a toolkit, since performance is an issue. Bill Cheng (william@cs.ucla.edu) suggested I look at the code for tgif 1.6, which was recently announced here. He pointed the way to the routines YesNoCancel() in button.c and Dialog() in dialog.c. I would suggest taking a gander at these for code examples; they seem to be quite complete. Thanks for the interest, Mike ________________________________________________________________________ | InterNet> davism@{kcgl1.eng|rcgl1.eng|osu-20.ircc}.ohio-state.edu | | -or- | | davis-m@eng.ohio-state.edu | | CompuServe> 73667,541 | |************************************************************************| | These thoughts, they be mine | ------------------------------------------------------------------------