Class List

Summary

#

  This component is for selecting one string from a list of
  several.  When a button is pressed a list appears (possibly
  with a scroll bar) from which one item can be selected.

  An event is generated whenever an item is selected from the
  list.

  @example
  @ l := List()
  @ l$set_selection_list(["Red", "Green", "Yellow", "Blue", "Orange"])
  @ l$set_size(120)
  @ l$set_pos(100, 100)
  @ l$set_selection(2)  # Green will be the first selection
  @ self$add(l)

Superclasses:
Component, DropDown

Package:
(main)
File:
_list.icn
Methods:
display, final_setup, finally, firstly, handle_event, resize, set_constant_label, 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, got_focus, handle_notify, in_region, is_hidden, is_shaded, is_unhidden, is_unshaded, lost_focus, 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, constant_label, l

Source code.

Details
Constructor

List(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

handle_event(e)

This method overrides handle_event in class Component

resize()

This method overrides resize in class Component

set_constant_label(x)

#
  The given string will always appear in the text part of the
  component, rather than the currently selected item.


set_selection(x)

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


Fields:
b

constant_label

l


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