home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / xpaint-247 / text.h < prev    next >
C/C++ Source or Header  |  1996-06-25  |  2KB  |  34 lines

  1. /* +-------------------------------------------------------------------+ */
  2. /* | Copyright 1992, 1993, David Koblas (koblas@netcom.com)            | */
  3. /* |                                                                   | */
  4. /* | Permission to use, copy, modify, and to distribute this software  | */
  5. /* | and its documentation for any purpose is hereby granted without   | */
  6. /* | fee, provided that the above copyright notice appear in all       | */
  7. /* | copies and that both that copyright notice and this permission    | */
  8. /* | notice appear in supporting documentation.  There is no           | */
  9. /* | representations about the suitability of this software for        | */
  10. /* | any purpose.  this software is provided "as is" without express   | */
  11. /* | or implied warranty.                                              | */
  12. /* |                                                                   | */
  13. /* +-------------------------------------------------------------------+ */
  14.  
  15. /* $Id: text.h,v 1.2 1996/04/15 14:15:09 torsten Exp $ */
  16.  
  17. typedef struct {
  18.     char *title;
  19.     int nprompt;
  20.     struct textPromptInfo {
  21.     char *prompt;        /* displayed prompt */
  22.     int len;        /* maximum string length */
  23.     char *str;        /* displayed initial string */
  24.     char *rstr;        /* returned string value */
  25.     Widget w;        /* internal -- don't use */
  26.     } *prompts;
  27. } TextPromptInfo;
  28.  
  29. void TextPrompt(Widget w, char *name, TextPromptInfo * prompt,
  30.           XtCallbackProc okProc, XtCallbackProc nokProc, void *data);
  31. void TextPromptPixmap(Widget w, char *name, TextPromptInfo * prompt,
  32.            XtCallbackProc okProc, XtCallbackProc nokProc, void *data,
  33.               Pixmap pix);
  34.