Creates a hierarchical-list control.
|
→ (is-a?/c hierarchical-list%) |
|
| style | | : | | (listof (one-of/c 'no-border 'control-border 'combo | 'no-hscroll 'no-vscroll | 'hide-hscroll 'hide-vscroll | 'auto-vscroll 'auto-hscroll | 'resize-corner 'deleted 'transparent)) |
| | | | = | | '(no-hscroll) |
|
Creates the control.
If the style 'transparent is passed, then the
use-style-background method will be
called with #t when editor snips are created as part of
the hierarchical list, ensuring that the entire control is
transparent.
Returns the currently selected item, if any.
The mixin argument is applied to a class implementing
hierarchical-list-item<%>, and the resulting class is
instantiated as the list item.
Enables/disables sublist mode. When sublists are disabled, space to
the left of the list items (that would normally align non-list items
with list items) is omitted. This method can be called only when the
list is empty.
The mixin argument is applied to a class implementing
hierarchical-list-compound-item<%>, and the resulting class
is instantiated as the sub-list.
Deletes immediate item or sub-list i from the list.
Returns a list of all immediate items in the list control.
Reports whether items are selectable, or enables/disables item
selection.
Called for new select of i, where i is #f
if no item is now selected.
Called for a double-click on i.
Called when the arrow for i is turned down.
Called when the arrow for i is turned up.
Sorts items in the list by calling less-than-proc on pairs of
items. If recur? is true, items in sub-lists are sorted
recursively.
Move the selection, scroll, and call on-select.
The allow-deselect method controls whether
i is allowed to be #f to deselect the currently
selected item.
The initial mode enables on-select calls
always.
Gets/sets whether the
on-click method is
called in response to all mouse clicks (as opposed to only when
selected).
on-click is called before
on-select, if it is called (if the click
results in selction).
This is initially disabled, by default.
Gets/sets whether the on-select can be
called with a #f argument to deselect the current item
(leaving none selected).
The initial mode does not allow deselection.