http://www.w3.org/TR/html4/loose.dtd"> StdGUI Widget Functions

StdGUI Widget Functions

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
AUTHOR

NAME

StdGUI Widget Functions

SYNOPSIS

WIDGET *create_widget(WINDOW *p_win, char *p_type, int p_flags, int p_x, int p_y, int p_h, int p_w, int *p_mode, ...);

int delete_widget(WIDGET *p_wgt);

int enable_widget(WIDGET *p_wgt);

int disable_widget(WIDGET *p_wgt);

int widget_method(WIDGET *p_wgt int *p_retval, char *p_method, ...);

DESCRIPTION

The create_widget() function creates a new widget of the specified named type (p_type) as a child of the specified window (p_win). The function call may, optionally, include a series of property (p_mode =SET_PROP) or user data (p_mode =SET_USER_DATA) definitions, similar to the definition list used in the create_window() function.

The delete_widget() function deletes a widget created by create_widget().

The enable_widget() and disable_widget() functions enable and disable widgets, cuasing them to accept or ignore users input, and to be drawn in a manner that reflects their enabled or disabled status.

The widget_method() function calls a named function (p_method) with a variable parameter list, returning an integer value (p_retval).Notallwidgetsimplementthesewidgetmethods.

RETURN VALUES

The create_widget() function returns a valid pointer to a widget structure on success, NULL on failure.

The delete_widget(), enable_widget() and disable_widget() function returns zero (0) on success, non-zero on failure.

AUTHOR

Jeffrey Dutky

dutky@bellatlantic.net or jeff.dutky@gmail.com

http://members.bellatlantic.net/~dutky