newt_centered_window » « newt_button_bar PHP 手册 函数参考 针对命令行的扩展 Newt Newt 函数 newt_button (PECL newt >= 0.1)newt_button — Create a new button 说明 newt_button ( int $left , int $top , string $text ) : resource Creates a new button. 参数 left X-coordinate of the button. top Y-coordinate of the button. text The text which should be displayed in the button. 返回值 Returns a resource link to the created button component, or FALSE on error. 范例 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);?> 参见 newt_button_bar() - This function returns a grid containing the buttons created add a note User Contributed Notes There are no user contributed notes for this page. 备份地址:http://www.lvesu.com/blog/php/function.newt-button.php