NEWT_BUTTON(3) 1 NEWT_BUTTON(3)
newt_button - Create a new button
SYNOPSIS
resource newt_button (int $left, int $top, string $text)
DESCRIPTION
Creates a new button.
PARAMETERS
o $left
- X-coordinate of the button.
o $top
- Y-coordinate of the button.
o $text
- The text which should be displayed in the button.
RETURN VALUES
Returns a resource link to the created button component, or FALSE on error.
EXAMPLES
Example #1
A newt_button(3) example
<?php
$form = newt_form();
$ok_button = newt_button(5, 12, "Run Tool");
newt_form_add_component($form, $ok_button);
?>
SEE ALSO
newt_button_bar(3).
PHP Documentation Group NEWT_BUTTON(3)