/*
 * numWrite.h
 *
 * [Generated from numWrite, 08 November 1995]
 */

#pragma include_only_once
#pragma force_top_level

#ifndef __numWrite_h
#define __numWrite_h

/*----- Overview ----------------------------------------------------------*
 *
 * Functions provided:
 *
 *  numWrite_set
 *  numWrite_read
 *  numWrite_bump
 *
 * Controls provided:
 *
 *   numWrite
 *
 * Macros provided:
 *
 *   NUMWRT
 */

/* --- numWrite --- *
 *
 * Control data:	+0 == minimum value
 *		+4 == maximum value
 *		+8
 *
 * Workspace:	+0
 *
 * Flags:	--
 *
 * Use:		Control type for numeric writable icons.
 */

extern routine numWrite;

/* --- numWrite --- *
 *
 * Control data:	+0 == minimum value
 *		+4 == maximum value
 *		+8
 *
 * Workspace:	+0
 *
 * Flags:	--
 *
 * Use:		Control type for numeric writable icons.
 */

extern routine numWrite;

/* --- numWrite_set --- *
 *
 * On entry:	R0 == dialogue box handle
 *		R1 == icon number within dialogue
 *		R2 == value to set in the icon
 *
 * On exit:	R2 == value actually set
 *
 * Use:		Writes the specified numeric value into the given writable
 *		icon.  The icon must be a dbx control with numWrite type
 *		for this to work.
 */

extern routine numWrite_set;

/* --- numWrite_read --- *
 *
 * On entry:	R0 == dialogue box handle
 *		R1 == icon handle
 *
 * On exit:	CC if icon contains a valid integer, and
 *		  R2 == value shown in the icon
 *		else CS and
 *		  R2 == 0
 *
 * Use:		Reads the numeric value within the icon specifed.
 */

extern routine numWrite_read;

/* --- numWrite_bump --- *
 *
 * On entry:	R0 == dialogue box handle
 *		R1 == icon handle
 *		R2 == increment to apply to it
 *
 * On exit:	R2 == updated value in the icon
 *
 * Use:		Adjusts the value in a writable icon by a given increment.
 */

extern routine numWrite_bump;

/* --- Macro: NUMWRT --- *
 *
 * Arguments:	icon == icon handle of control
 *		min == minimum representable value
 *		max == maximum representable value
 *
 * Use:		Inserts a definition of a numerical writable icon into
 *		a dbx dialogue definition table.
 */

/*----- Constants ---------------------------------------------------------*/

#define numWrite_event (0x80000004)

#define numWrite_change (0)
#define numWrite_move (1)

/*----- That's all, folks -------------------------------------------------*/

#endif
