plbutton

create button in X window

parametertypeunitsdescription
*labelchar*--label displayed by the button
func(void)void*--function associated with the button
returns:void

Description

plbutton, if the plotter driver is X, creates a button on the panel, labeled with the string in label. When the button is pressed, the user-defined routine func will be called. If PS is the plotter driver plbutton has no effect.

Examples

Every X-windows Simplot display comes with one initial button, labeled 'Quit'. It calls plend when pressed and is created by the statement: plbutton("Quit",plend); This is an example of a Simplot X-window showing this button:

plbutton