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

IMAGEGRABWINDOW(3)							 1							IMAGEGRABWINDOW(3)

imagegrabwindow - Captures a window

SYNOPSIS
resource imagegrabwindow (int $window_handle, [int $client_area]) DESCRIPTION
Grabs a window or its client area using a windows handle (HWND property in COM instance) PARAMETERS
o $window_handle - The HWND window ID. o $client_area - Include the client area of the application window. RETURN VALUES
Returns an image resource identifier on success, FALSE on failure. ERRORS
/EXCEPTIONS E_NOTICE is issued if $window_handle is invalid window handle. E_WARNING is issued if the Windows API is too old. EXAMPLES
Example #1 imagegrabwindow(3) example Capture a window (IE for example) <?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $im = imagegrabwindow($handle); $browser->Quit(); imagepng($im, "iesnap.png"); imagedestroy($im); ?> Capture a window (IE for example) but with its content <?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $browser->Navigate("http://www.libgd.org"); /* Still working? */ while ($browser->Busy) { com_message_pump(4000); } $im = imagegrabwindow($handle, 0); $browser->Quit(); imagepng($im, "iesnap.png"); imagedestroy($im); ?> NOTES
Note This function is only available on Windows. SEE ALSO
imagegrabscreen(3). PHP Documentation Group IMAGEGRABWINDOW(3)
Man Page