downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<newt_button_barnewt_centered_window>
Last updated: Thu, 26 Jun 2008

newt_button

(PECL newt:0.1-1.1)

newt_button — Create a new button

Description

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.

Return Values

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

Examples

Example #1 A newt_button() example

<?php

$form
= newt_form();

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

?>



add a noteadd a note User Contributed Notes
Create a new button
There are no user contributed notes for this page.




<newt_button_barnewt_centered_window>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs