Annotation of libwww/Library/src/HTAlert.html, revision 2.6
2.6 ! timbl 1: <HTML>
! 2: <HEAD>
! 3: <TITLE>/Net/dxcern/userd/timbl/hypertext/WWW/Library/Implementation/HTAlert.html</TITLE>
! 4: <NEXTID N="z3">
! 5: </HEAD>
! 6: <BODY>
! 7: <H1>Displaying messages and getting input
! 8: for <A
! 9: NAME="z0" HREF="Overview.html">WWW Library</A></H1>This module may be overridden for
! 10: GUI clients. It allows progress
! 11: indications and warning messages
! 12: to be communicated to the user in
! 13: a portable way. It should be used
! 14: for this purpose throughout the library
! 15: but isn't yet (July 93)
! 16: <UL>
! 17: <LI>May 92 Created By C.T. Barker
! 18: <LI>Feb 93 Portablized etc TBL
! 19: </UL>
! 20: <PRE>#include <A
! 21: NAME="z1" HREF="HTUtils.html">"HTUtils.h"</A>
! 22: #include <A
! 23: NAME="z2" HREF="tcp.html">"tcp.h"</A>
! 24:
! 25: </PRE>
! 26: <H2>HTPrompt: Display a message and get
! 27: the input</H2>
! 28: <H3>On entry,</H3>
! 29: <DL>
! 30: <DT>Msg
! 31: <DD> String to be displayed.
! 32: </DL>
! 33:
! 34: <H3>On exit,</H3>
! 35: <DL>
! 36: <DT>Return value
! 37: <DD> is malloc'd string which
! 38: must be freed.
! 39: </DL>
! 40:
! 41: <PRE>
1.1 timbl 42: extern char * HTPrompt PARAMS((CONST char * Msg, CONST char * deflt));
43:
44:
2.6 ! timbl 45: </PRE>
! 46: <H2>Display a message, don't wait for
! 47: input</H2>
! 48: <H3>On entry,</H3>
! 49: <DL>
! 50: <DT>Msg
! 51: <DD> String to be displayed.
! 52: </DL>
! 53:
! 54: <PRE>
1.1 timbl 55: extern void HTAlert PARAMS((CONST char * Msg));
56:
57:
2.6 ! timbl 58: </PRE>
! 59: <H2>Display a progress message for information
! 60: (and diagnostics) only</H2>
! 61: <H3>On entry,</H3>The input is a list of parameters
! 62: for printf.
! 63: <PRE>extern void HTProgress PARAMS((CONST char * Msg));
! 64:
! 65:
! 66: </PRE>
! 67: <H2>Display a message, then wait for
! 68: 'yes' or 'no'.</H2>
! 69: <H3>On entry,</H3>
! 70: <DL>
! 71: <DT>Msg
! 72: <DD> String to be displayed
! 73: </DL>
! 74:
! 75: <H3>On exit,</H3>
! 76: <DL>
! 77: <DT>Returns
! 78: <DD> If the user reacts in the
! 79: affirmative, returns TRUE, returns
! 80: FALSE otherwise.
! 81: </DL>
! 82:
! 83: <PRE>
1.1 timbl 84: extern BOOL HTConfirm PARAMS ((CONST char * Msg));
2.6 ! timbl 85:
! 86:
! 87:
! 88:
! 89: </PRE></BODY>
! 90: </HTML>
Webmaster