newt_button_bar
newt_centered_window
Newt Funkcje
PHP Manual

# newt_button

(PECL newt >= 0.1)

newt_button — Create a new button

### Opis

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

Creates a new button.

### Parametry

`left`

  X-coordinate of the button.

`top`

  Y-coordinate of the button.

`text`

  The text which should be displayed in the button.

### Zwracane wartości

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

### Przykłady

Przykład #1 A newt_button() example

`<?php
$form = newt_form();
$ok_button = newt_button(5, 12, "Run Tool");
newt_form_add_component($form, $ok_button);
?>`

### Zobacz też:

- newt_button_bar() - This function returns a grid containing the buttons created.

newt_button_bar
newt_centered_window
Newt Funkcje
PHP Manual