BUTTON_CREATE(3)		WLIB-CALLS		BUTTON_CREATE(3)

NAME

	button_create()

SYPNOSIS

	#include <Wlib.h>

	short button_create(short win, short x, short y, short width,
			    short height, char *font, char *text, char id);

DESCRIPTION

	 button_create() creates a button of the given size at the given
	position in the given window with the given text in the given font
	(use the name, not the handle!) in it. the button is not yet drawn,
	only created. the `id' parameter is what will be returned in an
	w_queryevent call if you press this button. you can only receive
	events for a button if you call button_show() first.

	 no more than MAXBUTTONS (currently 8) may be created and the
	text may not be longer than MAXBUTTONTEXTLEN (currently 16)
	characters.

RETURNS

	- zero if everything is ok

	- anything else otherwise

SEE ALSO

	buttondelete(2), buttonshow(2), buttonhide(2) and wqueryevent(3)

LAST CHANGED

	12/94 by TeSche, itschere@techfak.uni-bielefeld.de
