Руководство по PHP
Пред. |  | След.

# newt_form

(PECL)

newt_form -- Create a form

## Описание

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

Create a new form.

## Список параметров

`vert_bar`

  Vertical scrollbar which should be associated with the form

`help`

  Help text string

`flags`

  Various flags

## Возвращаемые значения

Resource link to the created form component.

## Примеры

Пример 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 (5, 12, "Quit"); newt_form_add_component ($myform, $button); newt_refresh (); newt_run_form ($myform); newt_finished (); newt_form_destroy ($myform); ?>`

## Смотрите также

newt_form_run()
newt_run_form()
newt_form_add_component()
newt_form_add_components()
newt_form_destroy()

Пред. | Начало | След.
newt_form_watch_fd | Уровень выше | newt_get_screen_size