newt_get_screen_size> <newt_form_watch_fd
Last updated: Fri, 24 Feb 2012

newt_form

(PECL newt >= 0.1)

newt_formCreate a form

Descrição

resource newt_form ([ resource $vert_bar [, string $help [, int $flags ]]] )

Create a new form.

Parâmetros

vert_bar

Vertical scrollbar which should be associated with the form

help

Help text string

flags

Various flags

Valor Retornado

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

Exemplos

Exemplo #1 A newt_form() example

Displays a single button "Quit", which closes the application once it's pressed.

<?php
newt_init
();
newt_cls();

$myform newt_form();
$button newt_button (512"Quit");

newt_form_add_component ($myform$button);
newt_refresh ();
newt_run_form ($myform);

newt_finished ();
newt_form_destroy ($myform);
?>

Veja Também



User Contributed Notes
newt_form
There are no user contributed notes for this page.

newt_get_screen_size> <newt_form_watch_fd
Last updated: Fri, 24 Feb 2012