newt_button

Create a new button

&reftitle.description; `resource` `newt_button` `int` `left` `int` `top` `string` `text`

Creates a new button.

&reftitle.parameters;

`left`

- X-coordinate of the button.

`top`

- Y-coordinate of the button.

`text`

- The text which should be displayed in the button.

&reftitle.returnvalues;

Returns a resource link to the created button component, or &false; on error.

&reftitle.examples;

### A `newt_button` example

    <?php

    $form = newt_form();

    $ok_button = newt_button(5, 12, "Run Tool");

    newt_form_add_component($form, $ok_button);

    ?>

&reftitle.seealso;

- `newt_button_bar`