Home > PHP > Function > Newt > newt_button()

newt_button()

newt_button - Create a new button

Syntax

resource newt_button (int $left, int $top, string $text)

Arguments

  • left - X-coordinate of the button.
  • top - Y-coordinate of the button.
  • text - The text which should be displayed in the button.

Description

Creates a new button.

Version

PHP PECL newt >= 0.1

Return value

Returns a resource link to the created button component, or FALSE on error.