newt_form
(PECL newt >= 0.1)
newt_form — Create a form
Description
resource newt_form
([ resource
$vert_bar
[, string $help
[, int $flags
]]] )Create a new form.
Parameters
-
vert_bar
-
Vertical scrollbar which should be associated with the form
-
help
-
Help text string
-
flags
-
Various flags
Return Values
Returns a resource link to the created form component, or FALSE
on
error.
Examples
Example #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);
?>
See Also
- newt_form_run() - Runs a form
- newt_run_form() - Runs a form
- newt_form_add_component() - Adds a single component to the form
- newt_form_add_components() - Add several components to the form
- newt_form_destroy() - Destroys a form
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с командной строкой
- Newt
- newt_bell
- newt_button_bar
- newt_button
- newt_centered_window
- newt_checkbox_get_value
- newt_checkbox_set_flags
- newt_checkbox_set_value
- newt_checkbox_tree_add_item
- newt_checkbox_tree_find_item
- newt_checkbox_tree_get_current
- newt_checkbox_tree_get_entry_value
- newt_checkbox_tree_get_multi_selection
- newt_checkbox_tree_get_selection
- newt_checkbox_tree_multi
- newt_checkbox_tree_set_current
- newt_checkbox_tree_set_entry_value
- newt_checkbox_tree_set_entry
- newt_checkbox_tree_set_width
- newt_checkbox_tree
- newt_checkbox
- newt_clear_key_buffer
- newt_cls
- newt_compact_button
- newt_component_add_callback
- newt_component_takes_focus
- newt_create_grid
- newt_cursor_off
- newt_cursor_on
- newt_delay
- newt_draw_form
- newt_draw_root_text
- newt_entry_get_value
- newt_entry_set_filter
- newt_entry_set_flags
- newt_entry_set
- newt_entry
- newt_finished
- newt_form_add_component
- newt_form_add_components
- newt_form_add_hot_key
- newt_form_destroy
- newt_form_get_current
- newt_form_run
- newt_form_set_background
- newt_form_set_height
- newt_form_set_size
- newt_form_set_timer
- newt_form_set_width
- newt_form_watch_fd
- newt_form
- newt_get_screen_size
- newt_grid_add_components_to_form
- newt_grid_basic_window
- newt_grid_free
- newt_grid_get_size
- newt_grid_h_close_stacked
- newt_grid_h_stacked
- newt_grid_place
- newt_grid_set_field
- newt_grid_simple_window
- newt_grid_v_close_stacked
- newt_grid_v_stacked
- newt_grid_wrapped_window_at
- newt_grid_wrapped_window
- newt_init
- newt_label_set_text
- newt_label
- newt_listbox_append_entry
- newt_listbox_clear_selection
- newt_listbox_clear
- newt_listbox_delete_entry
- newt_listbox_get_current
- newt_listbox_get_selection
- newt_listbox_insert_entry
- newt_listbox_item_count
- newt_listbox_select_item
- newt_listbox_set_current_by_key
- newt_listbox_set_current
- newt_listbox_set_data
- newt_listbox_set_entry
- newt_listbox_set_width
- newt_listbox
- newt_listitem_get_data
- newt_listitem_set
- newt_listitem
- newt_open_window
- newt_pop_help_line
- newt_pop_window
- newt_push_help_line
- newt_radio_get_current
- newt_radiobutton
- newt_redraw_help_line
- newt_reflow_text
- newt_refresh
- newt_resize_screen
- newt_resume
- newt_run_form
- newt_scale_set
- newt_scale
- newt_scrollbar_set
- newt_set_help_callback
- newt_set_suspend_callback
- newt_suspend
- newt_textbox_get_num_lines
- newt_textbox_reflowed
- newt_textbox_set_height
- newt_textbox_set_text
- newt_textbox
- newt_vertical_scrollbar
- newt_wait_for_key
- newt_win_choice
- newt_win_entries
- newt_win_menu
- newt_win_message
- newt_win_messagev
- newt_win_ternary
Коментарии
404 Not Found