9.4 Snips in a hierarchical-list% Instance

► |  | Mr Lib: Extra GUI Libraries

1 | Aligned Pasteboard
2 | Arrow Toggle Snip
3 | Bitmap Label
4 | Cache-image Snip
5 | Close Icon
6 | Expandable Snip
7 | GIF and Animated GIF Writing
8 | Graphs
9 | Hierarchical List Control
10 | Include Bitmap
11 | Interactive Value Port
12 | Name Message
13 | Path Dialog
14 | Plot
15 | Switchable Button
16 | Image Core
17 | Matrix Snip
18 | Snip Canvases
19 | Syntax Browser
20 | Te X Table
21 | Terminal Window
22 | White on Black Panel Predicate
23 | Acknowledgments
| Index

▼ | 9 | Hierarchical List Control

9.1 | hierarchical-list%
9.2 | hierarchical-list-item<%>
9.3 | hierarchical-list-compound-item<%>
9.4 | Snips in a hierarchical-list% Instance

On this page:

hierarchical-item-snip%
get-item
hierarchical-list-snip%
get-item
get-content-buffer

top contents ← prev up next →

#### 9.4`` Snips in a hierarchical-list% Instance🔗ℹ

The find-snip in text% method of the editor in a hierarchical-list% return instances of hierarchical-item-snip% and hierarchical-list-snip%.

class hierarchical-item-snip% : class?
superclass: editor-snip%

> > method (send a-hierarchical-item-snip get-item)
> > → (is-a?/c hierarchical-list-item<%>)

> Returns the hierarchical-list-item<%> corresponding to the snip.

class hierarchical-list-snip% : class?
superclass: editor-snip%

> > method (send a-hierarchical-list-snip get-item)
> > → (is-a?/c hierarchical-list-compound-item<%>)

> Returns the hierarchical-list-compound-item<%> corresponding to the snip.

> > method (send a-hierarchical-list-snip get-content-buffer)
> > → (is-a?/c text%)

> Returns the text% that contains the sub-item snips.

top contents ← prev up next →