Class EditList

Summary

#
  This component functions in the same way as List above, but
  the item selected may be edited by the user.  An extra
  method is therefore supplied to get the content, as it may
  not correspond to an element of the list.

  An event is generated with code 0 if an element of the list
  is selected, with code 1 if return is pressed, and with
  code 2 if the user edits the selected item.

Superclasses:
Component, DropDown

Package:
(main)
File:
editlist.icn
Methods:
display, final_setup, finally, firstly, get_contents, got_focus, handle_event, in_region, lost_focus, resize, set_contents, set_filter, set_selection

Methods inherited from Component:
accepts_tab_focus, attrib, clear_accepts_tab_focus, clear_draw_border, clear_is_shaded, clear_no_updates, do_shading, error, generate_all_components, generate_components, get_cbwin_reference, get_cwin_reference, get_h_reference, get_parent_Dialog, get_parent_buffer_win, get_parent_win, get_visible_reference, get_w_reference, get_x_reference, get_y_reference, handle_notify, is_hidden, is_shaded, is_unhidden, is_unshaded, parse_pos, redisplay, set_abs_coords, set_abs_size, set_accepts_tab_focus, set_align, set_attribs, set_attribs_list, set_draw_border, set_is_shaded, set_no_updates, set_parent_Dialog, set_pos, set_size, set_tooltip, toggle_draw_border, toggle_is_shaded, unique_end, unique_start

Methods inherited from DropDown:
close_TextList, get_selection, open_TextList, set_selection_list

Methods inherited from MetaComponent:
set_fields

Methods inherited from Ticker:
is_ticking, retime_ticker, set_ticker, stop_ticker, tick

Fields:
b, no_default, tf

Source code.

Details
Constructor

EditList(argv)

Methods:

display(buffer_flag)

This method overrides display in class Component

final_setup(x, y)

This method overrides final_setup in class Component

finally()

This method overrides finally in class Component

firstly()

This method overrides firstly in class Component

get_contents()

#
  Return the contents of the selected item (which may have
  been edited).


got_focus()

This method overrides got_focus in class Component

handle_event(e)

This method overrides handle_event in class Component

in_region()

This method overrides in_region in class Component

lost_focus()

This method overrides lost_focus in class Component

resize()

This method overrides resize in class Component

set_contents(x)

#
  Set the initial contents of the text to the given string.


set_filter(c)

#
 Set the text field's filter (see {TextField} for details).
 @param c  The filter


set_selection(x)

#
  Set the selected item.
  @param x   An index into the list of selectable items.


Fields:
b

no_default

tf


This page produced by UniDoc on 2021/04/15 @ 23:59:53.