Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

newt_form(3) [php man page]

NEWT_FORM(3)								 1							      NEWT_FORM(3)

newt_form - Create a form

SYNOPSIS
resource newt_form ([resource $vert_bar], [string $help], [int $flags]) DESCRIPTION
Create a new form. PARAMETERS
o $vert_bar - Vertical scrollbar which should be associated with the form o $help - Help text string o $flags - Various flags RETURN VALUES
Returns a resource link to the created form component, or FALSE on error. EXAMPLES
Example #1 A newt_form(3) 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); ?> SEE ALSO
newt_form_run(3), newt_run_form(3), newt_form_add_component(3), newt_form_add_components(3), newt_form_destroy(3). PHP Documentation Group NEWT_FORM(3)

Check Out this Related Man Page

GUPNP_ROOT_DEVICE_NEW(3)						 1						  GUPNP_ROOT_DEVICE_NEW(3)

gupnp_root_device_new - Create a new root device

SYNOPSIS
resource gupnp_root_device_new (resource $context, string $location, string $description_dir) DESCRIPTION
Create a new root device, automatically downloading and parsing location. PARAMETERS
o $context - A context identifier, returned by gupnp_context_new(3). o $location - Location of the description file for this device, relative to the HTTP root RETURN VALUES
A root device identifier. EXAMPLES
Example #1 Create new UPnP context and get device info service <?php /* Create the UPnP context */ $context = gupnp_context_new(); if (!$context) { die("Error creating the GUPnP context "); } /* Create root device */ $location = "/BinaryLight1.xml"; $dev = gupnp_root_device_new($context, $location); ?> SEE ALSO
gupnp_root_device_set_available(3), gupnp_root_device_start(3), gupnp_root_device_stop(3). PHP Documentation Group GUPNP_ROOT_DEVICE_NEW(3)
Man Page