newt_button

(PECL newt >= 0.1)
Create a new button
resource newt_button ( int $left, int $top, string $text )

Creates a new button.

Parameters:
left

X-coordinate of the button.

top

Y-coordinate of the button.

text

The text which should be displayed in the button.

Returns:

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

Examples:
A newt_button() 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() -

doc_php
2016-02-24 15:54:52
Comments
Leave a Comment

Please login to continue.