# tbIDE Package
{: .no_toc }

The **tbIDE** package is the **addin SDK** for the twinBASIC IDE. An addin is a Standard DLL that the IDE loads at start-up; the DLL exports one factory function, returns one object implementing the [**AddIn**](/tB/Packages/tbIDE/AddIn.md) contract, and from there everything happens through the [**Host**](/tB/Packages/tbIDE/Host.md) object the IDE passes in. The package itself is **type-only** --- every public symbol is an interface or a CoClass; the actual implementations live in the twinBASIC IDE binary, and the addin DLL binds against the type declarations and lets the IDE marshal calls into its implementations at run time.

The package is a built-in *compiler* package shipped with twinBASIC. The addin samples, 10 to 16 and 24 to 27, reference it already, but a project started from the **Standard DLL** template does not, and without the reference every name in the package --- `AddIn`, `Host` and the rest --- is *TB5079 Unrecognized datatype symbol*. Add it through Project → References... (**Ctrl-T**) → the **Available Packages** tab: tick the row **twinBASIC - IDE Extensibility Package**, marked **[BUILT-IN]**, whose library symbol is **tbIDE**, and press **Apply Changes**.

* TOC
{:toc}

## Building and loading an addin

An addin project has three distinguishing settings:

- **Build type:** Standard DLL.
- **Build path:** `${IdePath}\addins\${Architecture}\${ProjectName}.${FileExtension}`. The output drops directly into the IDE's `addins\Win32\` or `addins\Win64\` folder, where the IDE scans for addins on start-up. It also scans the same two folders under `%APPDATA%\twinBASIC\addins\`, which an IDE update leaves in place; see [Add Ins](/tB/IDE/AddIns/index.md). Once the IDE has loaded the addin, this path can no longer be built to; see [Rebuilding an addin the IDE has loaded](#rebuilding-an-addin-the-ide-has-loaded). Samples 24 to 27 build into the per-user folders instead, with `${AppData}\twinBASIC\addins\${Architecture}\${ProjectName}.${FileExtension}`.
- **Compiler-package reference** to **tbIDE** (added to the project's references with `isCompilerPackage: true`, `publisher: TWINBASIC-COMPILER`, `symbolId: tbIDE`). This is the binding between the DLL's compile-time types and the IDE's run-time implementations.

The DLL must export one function --- the entry point the IDE calls when it discovers and loads the addin:

```tb check_build projname=tbide-myaddin
Module MainModule
    [DllExport]
    Public Function tbCreateCompilerAddin(ByVal Host As Host) As AddIn
        Return New MyAddIn(Host)
    End Function
End Module
```

The returned object must implement [**AddIn**](/tB/Packages/tbIDE/AddIn.md).

> [!NOTE]
> The linker exports **tbCreateCompilerAddin** as `tbCreateCompilerAddin_v3`, and under no other name, so that is the name a list of the DLL's exports shows. The IDE looks for `tbCreateCompilerAddin`, `tbCreateCompilerAddin_v2` and `tbCreateCompilerAddin_v3`, and calls whichever it finds in the same way. It does not load a DLL that exports none of them; the DEBUG CONSOLE then says *Entry point not found. Addin may have been compiled for a newer version of the twinBASIC IDE.* [Add Ins](/tB/IDE/AddIns/index.md#when-an-addin-does-not-load) lists the other reasons an addin does not load.

The addin runs inside the compiler's process, and lasts as long as that process does. **Whenever the compiler restarts, the addin is loaded again:** on the toolbar's restart button, on every switch of the build target, and when the IDE restarts the compiler after a crash. The IDE ends the old process with a forced kill, so the addin's `Class_Terminate` does not run, and whatever the addin held in memory is gone. It removes the addin's toolbar buttons and keyboard shortcuts, and leaves its tool windows where they were, showing *(currently unavailable)*. The new compiler loads the DLL that is in the addins folder by then, and the new instance's [**OnProjectLoaded**](/tB/Packages/tbIDE/Host.md#onprojectloaded) runs, as at start-up. A tool window it adds under the same id as before is the same window, emptied; see [**ToolWindows.Add**](/tB/Packages/tbIDE/ToolWindows.md#add).

A minimal addin class:

```tb check_build projname=tbide-myaddin
Private Class MyAddIn
    Implements AddIn

    Private WithEvents Host As Host

    Public Sub New(ByVal Host As Host)
        Set Me.Host = Host
    End Sub

    Private Property Get AddIn_Name() As String
        Return "My AddIn"
    End Property

    Private Sub Host_OnProjectLoaded()
        Host.DebugConsole.PrintText "Hello from My AddIn!"
    End Sub
End Class
```

The `WithEvents Host As Host` pattern is how the addin subscribes to IDE lifecycle events ([**OnProjectLoaded**](/tB/Packages/tbIDE/Host.md#onprojectloaded), [**OnChangedActiveEditor**](/tB/Packages/tbIDE/Host.md#onchangedactiveeditor), [**OnChangedTheme**](/tB/Packages/tbIDE/Host.md#onchangedtheme)). Almost every meaningful addin sets up its toolbar buttons and tool windows inside the [**OnProjectLoaded**](/tB/Packages/tbIDE/Host.md#onprojectloaded) handler --- that is the first moment the IDE is fully ready to accept extensibility commands.

## Rebuilding an addin the IDE has loaded

The build path above writes the DLL into the IDE's own `addins` folder, and the IDE loads it the next time it starts. From then on the IDE's compiler keeps the file open, and building the addin again in that IDE fails. The build log reads:

```text
[LINKER] FAILED to create output file '...\addins\win32\MyAddIn.dll' (error code 32)
```

and then names the process that holds the file, the IDE's own compiler, `twinBASIC_win32_noDEP.exe`. Error code 32 is Windows' *file in use*. The same happens in the per-user `addins` folder under `%APPDATA%`.

The easiest way to build the addin again is to build it into the per-user folder, and to restart the compiler without its addins for the build:

1. Set the addin project's [Build Output Path](/tB/IDE/Project-Settings.md#build-output-path) to `${AppData}\twinBASIC\addins\${Architecture}\${ProjectName}.${FileExtension}`, the path samples 24 to 27 use. If an earlier build is in the installation's `addins` folder, delete it there while the IDE is closed.
2. Hold <kbd>Shift</kbd> while you [restart the compiler](/tB/IDE/Building/Build-Configuration.md#restart-the-compiler), with the toolbar button or **Tools → Restart the compiler**. The DEBUG CONSOLE says `[IDE] SHIFT KEY DETECTED: DISABLED LOADING OF ADDINS`, and the new compiler does not load the addin, so nothing holds the DLL. See [Opening projects](/tB/IDE/Starting/Opening-Projects.md#what-happens-as-a-project-loads) for what else a load with <kbd>Shift</kbd> held skips.
3. Build. The new DLL replaces the old one.
4. Restart the compiler again, without <kbd>Shift</kbd>. It loads the new build.

![The toolbar's build target box, win32, and the Restart the compiler button after it, ringed, with the label + Shift under the button. An arrow leads to the DEBUG CONSOLE, at its second line, [IDE] SHIFT KEY DETECTED: DISABLED LOADING OF ADDINS, under the line restarting from MEMORY and the project's path.](/Reference/Built-In/tbIDE/Images/Restart_Without_Addins.png){:width="795" height="158"}

Alternatively, build the addin somewhere else and copy it in while the IDE is closed:

1. Set the addin project's [Build Output Path](/tB/IDE/Project-Settings.md#build-output-path) to `${SourcePath}\Build\${ProjectName}_${Architecture}.${FileExtension}`, the path the other project templates use.
2. Build. The DLL goes into a `Build` folder beside the `.twinproj`, as `MyAddIn_win32.dll`.
3. Close the IDE, copy the new DLL over the old one in the installation's `addins\win32` folder, keeping the old one's name, and start the IDE again. It loads the new build.

Keep one copy of the addin in the folder: the IDE loads every DLL in it, so a second copy under another name loads as a second addin.

## The class catalogue

The package's `.twin` files declare interface-and-CoClass pairs, and two concrete classes, grouped here by role for orientation. Most CoClasses are **supplied to the addin by the IDE** --- never instantiated with `New`. The exceptions are the two classes, [**AddinTimer**](/tB/Packages/tbIDE/AddinTimer.md) and [**UnsupportedHostAddin**](/tB/Packages/tbIDE/UnsupportedHostAddin.md), and the two an addin implements for a designer of its own, [**DesignerFactory**](/tB/Packages/tbIDE/DesignerFactory.md) and [**Designer**](/tB/Packages/tbIDE/Designer.md).

### Entry point and root API

- [**AddIn**](/tB/Packages/tbIDE/AddIn.md) -- the contract every addin's main class implements. One read-only [**Name**](/tB/Packages/tbIDE/AddIn.md#name) property.
- [**Host**](/tB/Packages/tbIDE/Host.md) -- the root API object passed to `tbCreateCompilerAddin`. Exposes the [**CurrentProject**](/tB/Packages/tbIDE/Host.md#currentproject), the [**ActiveEditors**](/tB/Packages/tbIDE/Host.md#activeeditors), the [**Toolbars**](/tB/Packages/tbIDE/Host.md#toolbars), the [**ToolWindows**](/tB/Packages/tbIDE/Host.md#toolwindows), the [**DebugConsole**](/tB/Packages/tbIDE/Host.md#debugconsole), the [**FileSystem**](/tB/Packages/tbIDE/Host.md#filesystem), the [**KeyboardShortcuts**](/tB/Packages/tbIDE/Host.md#keyboardshortcuts), the [**Themes**](/tB/Packages/tbIDE/Host.md#themes), and a small set of dialog helpers ([**ShowMessageBox**](/tB/Packages/tbIDE/Host.md#showmessagebox), [**ShowNotification**](/tB/Packages/tbIDE/Host.md#shownotification)).
- [**UnsupportedHostAddin**](/tB/Packages/tbIDE/UnsupportedHostAddin.md) -- an **AddIn** with no name, for an addin to return from `tbCreateCompilerAddin` when the IDE is too old for it.
- [**AddinTimer**](/tB/Packages/tbIDE/AddinTimer.md) -- a class the addin creates itself. `New AddinTimer`; set [**Interval**](/tB/Packages/tbIDE/AddinTimer.md#interval) and [**Enabled**](/tB/Packages/tbIDE/AddinTimer.md#enabled); receives a [**Timer**](/tB/Packages/tbIDE/AddinTimer.md#timer) event.

### Project, editors, and the virtual file system

- [**Project**](/tB/Packages/tbIDE/Project.md) -- the currently-loaded project. Lifecycle ([**Save**](/tB/Packages/tbIDE/Project.md#save), [**Close**](/tB/Packages/tbIDE/Project.md#close), [**Build**](/tB/Packages/tbIDE/Project.md#build), [**Clean**](/tB/Packages/tbIDE/Project.md#clean)), introspection ([**Name**](/tB/Packages/tbIDE/Project.md#name), [**Path**](/tB/Packages/tbIDE/Project.md#path), [**ProjectID**](/tB/Packages/tbIDE/Project.md#projectid), version + architecture + build-output info), the [**Evaluate**](/tB/Packages/tbIDE/Project.md#evaluate) hook into the debug-console expression engine, the [**RootFolder**](/tB/Packages/tbIDE/Project.md#rootfolder) entry into the virtual file system, and the [**LoadMetaData**](/tB/Packages/tbIDE/Project.md#loadmetadata) / [**SaveMetaData**](/tB/Packages/tbIDE/Project.md#savemetadata) pair for persistent per-addin key/value storage inside the `.twinproj` file.
- [**Editor**](/tB/Packages/tbIDE/Editor.md) -- the base editor interface (Path, Type, SetFocus, Close, Save, IsDirty). Castable to [**CodeEditor**](/tB/Packages/tbIDE/CodeEditor.md).
- [**CodeEditor**](/tB/Packages/tbIDE/CodeEditor.md) -- a code-pane editor: selection, full text, Monaco passthrough ([**ExecuteMonacoCommand**](/tB/Packages/tbIDE/CodeEditor.md#executemonacocommand)), inline overlay HTML ([**AddMonacoWidget**](/tB/Packages/tbIDE/CodeEditor.md#addmonacowidget)).
- [**Editors**](/tB/Packages/tbIDE/Editors.md) -- the collection of active editors. `Editors(0)` is the current editor; [**Open**](/tB/Packages/tbIDE/Editors.md#open) jumps to a file (and optional line/column).
- [**FileSystem**](/tB/Packages/tbIDE/FileSystem.md) -- the virtual file system. [**RootFolder**](/tB/Packages/tbIDE/FileSystem.md#rootfolder), [**ResolvePath**](/tB/Packages/tbIDE/FileSystem.md#resolvepath).
- [**FileSystemItem**](/tB/Packages/tbIDE/FileSystemItem.md) -- the base for [**File**](/tB/Packages/tbIDE/File.md) and [**Folder**](/tB/Packages/tbIDE/Folder.md). `Name`, `Path`, `Type`, `Parent`.
- [**Folder**](/tB/Packages/tbIDE/Folder.md) -- children enumeration (prefer **For Each** --- see the warning on [**Count**](/tB/Packages/tbIDE/Folder.md#count) / [**Item**](/tB/Packages/tbIDE/Folder.md#item) --- the IDE is multi-threaded and index-based iteration races), [**IsPackagesFolder**](/tB/Packages/tbIDE/Folder.md#ispackagesfolder).
- [**File**](/tB/Packages/tbIDE/File.md) -- virtual-FS file accessors: [**Data**](/tB/Packages/tbIDE/File.md#data) (raw bytes), [**Text**](/tB/Packages/tbIDE/File.md#text) (decoded text), [**ReadText**](/tB/Packages/tbIDE/File.md#readtext) (text with options like comment-stripping), [**IsDirty**](/tB/Packages/tbIDE/File.md#isdirty).

### IDE UI

- [**Toolbar**](/tB/Packages/tbIDE/Toolbar.md) -- the IDE toolbar. [**AddSplitter**](/tB/Packages/tbIDE/Toolbar.md#addsplitter), [**AddButton**](/tB/Packages/tbIDE/Toolbar.md#addbutton).
- [**Toolbars**](/tB/Packages/tbIDE/Toolbars.md) -- the toolbar collection. Currently a single toolbar, addressable as `Toolbars(0)`.
- [**Button**](/tB/Packages/tbIDE/Button.md) -- a toolbar button created by [**AddButton**](/tB/Packages/tbIDE/Toolbar.md#addbutton). Exposes [**OnClick**](/tB/Packages/tbIDE/Button.md#onclick).
- [**ToolWindow**](/tB/Packages/tbIDE/ToolWindow.md) -- a dockable / floating HTML-rendered tool window. [**Title**](/tB/Packages/tbIDE/ToolWindow.md#title), [**Visible**](/tB/Packages/tbIDE/ToolWindow.md#visible), [**Resizable**](/tB/Packages/tbIDE/ToolWindow.md#resizable), [**RootDomElement**](/tB/Packages/tbIDE/ToolWindow.md#rootdomelement), [**ApplyCss**](/tB/Packages/tbIDE/ToolWindow.md#applycss), [**OnClose**](/tB/Packages/tbIDE/ToolWindow.md#onclose).
- [**ToolWindows**](/tB/Packages/tbIDE/ToolWindows.md) -- the tool-window factory: [**Add**](/tB/Packages/tbIDE/ToolWindows.md#add) creates a new one.
- [**Menus**](/tB/Packages/tbIDE/Menus.md) -- the IDE's menus, each a [**Menu**](/tB/Packages/tbIDE/Menu.md): [**AddEntry**](/tB/Packages/tbIDE/Menu.md#addentry) adds a command, a [**MenuEntry**](/tB/Packages/tbIDE/MenuEntry.md) with a [**Click**](/tB/Packages/tbIDE/MenuEntry.md#click) event. [**AddCustom**](/tB/Packages/tbIDE/Menus.md#addcustom) adds a menu of the addin's own.
- [**ProjectExplorer**](/tB/Packages/tbIDE/ProjectExplorer.md) -- the **Project Explorer**: the [**SelectedItemPath**](/tB/Packages/tbIDE/ProjectExplorer.md#selecteditempath), and [**AddFileUI**](/tB/Packages/tbIDE/ProjectExplorer.md#addfileui) to make a new file.

### Designers

A designer is an editor of the addin's own for a kind of file, shown in a tab like a code file. The Hex Editor, the ICO Designer and the Data Explorer that ship with the IDE are designers.

- [**Designers**](/tB/Packages/tbIDE/Designers.md) -- [**Register**](/tB/Packages/tbIDE/Designers.md#register) offers a designer for files of an extension.
- [**DesignerFactory**](/tB/Packages/tbIDE/DesignerFactory.md) -- implemented by the addin: makes a [**Designer**](/tB/Packages/tbIDE/Designer.md) for each tab.
- [**Designer**](/tB/Packages/tbIDE/Designer.md) -- implemented by the addin: the IDE calls it as the tab opens, gets the file's bytes, becomes active and closes.
- [**DesignerHost**](/tB/Packages/tbIDE/DesignerHost.md) -- the tab, passed to the designer: its DOM, its caption, and [**SetFileData**](/tB/Packages/tbIDE/DesignerHost.md#setfiledata), which gives the IDE the file's new bytes.
- [**DesignerToolbox**](/tB/Packages/tbIDE/DesignerToolbox.md) and [**DesignerToolboxItem**](/tB/Packages/tbIDE/DesignerToolboxItem.md) -- the tools the designer shows in the IDE's TOOLBOX.

### Tool-window DOM and events

The four `Html*` classes are the addin's view into the DOM inside a tool window. All four are declared with `[COMExtensible(True)]` --- see [Dynamic DOM property resolution](#dynamic-dom-property-resolution).

- [**HtmlElement**](/tB/Packages/tbIDE/HtmlElement.md) -- one DOM element. [**Properties**](/tB/Packages/tbIDE/HtmlElement.md#properties), [**ChildDomElements**](/tB/Packages/tbIDE/HtmlElement.md#childdomelements), [**Remove**](/tB/Packages/tbIDE/HtmlElement.md#remove), [**AddEventListener**](/tB/Packages/tbIDE/HtmlElement.md#addeventlistener).
- [**HtmlElements**](/tB/Packages/tbIDE/HtmlElements.md) -- the child-element collection. [**Item**](/tB/Packages/tbIDE/HtmlElements.md#item) and [**Add**](/tB/Packages/tbIDE/HtmlElements.md#add) --- the latter accepts standard HTML tags **and** the IDE's custom-widget tags `"chartjs"`, `"monaco"`, `"listview"`, `"virtuallistview"`.
- [**HtmlElementProperty**](/tB/Packages/tbIDE/HtmlElementProperty.md) -- one settable property in the bag.
- [**HtmlElementProperties**](/tB/Packages/tbIDE/HtmlElementProperties.md) -- the dynamic property bag on a DOM element.
- [**HtmlEventProperty**](/tB/Packages/tbIDE/HtmlEventProperty.md) -- one read-only value in an event payload.
- [**HtmlEventProperties**](/tB/Packages/tbIDE/HtmlEventProperties.md) -- the dynamic event-payload bag passed to every [**AddEventListener**](/tB/Packages/tbIDE/HtmlElement.md#addeventlistener) callback, with an [**AsyncResultResolver**](/tB/Packages/tbIDE/HtmlEventProperties.md#asyncresultresolver) to answer the [datasheet](/tB/Packages/tbIDE/Datasheet.md)'s requests.

### Singletons

- [**DebugConsole**](/tB/Packages/tbIDE/DebugConsole.md) -- the DEBUG CONSOLE pane. [**PrintText**](/tB/Packages/tbIDE/DebugConsole.md#printtext), [**Clear**](/tB/Packages/tbIDE/DebugConsole.md#clear), [**SetFocus**](/tB/Packages/tbIDE/DebugConsole.md#setfocus).
- [**KeyboardShortcuts**](/tB/Packages/tbIDE/KeyboardShortcuts.md) -- IDE-wide keyboard shortcuts. [**Add**](/tB/Packages/tbIDE/KeyboardShortcuts.md#add). The IDE's own commands and their keys are listed in the IDE reference, under [Keyboard Shortcuts](/tB/IDE/Reference/Keyboard-Shortcuts.md).
- [**Themes**](/tB/Packages/tbIDE/Themes.md) -- the IDE's active theme. [**ActiveThemeName**](/tB/Packages/tbIDE/Themes.md#activethemename), [**ActiveThemeNameGroup**](/tB/Packages/tbIDE/Themes.md#activethemenamegroup), and the [colours for addins](/tB/Packages/tbIDE/Themes.md#colours-for-addins).

## Dynamic DOM property resolution

The four `Html*` classes that have the `[COMExtensible(True)]` attribute --- [**HtmlElementProperties**](/tB/Packages/tbIDE/HtmlElementProperties.md), [**HtmlElementProperty**](/tB/Packages/tbIDE/HtmlElementProperty.md), [**HtmlEventProperties**](/tB/Packages/tbIDE/HtmlEventProperties.md), [**HtmlEventProperty**](/tB/Packages/tbIDE/HtmlEventProperty.md) --- accept **arbitrary property names** that are resolved against the underlying DOM element (or event object) at run time. None of `style`, `innerText`, `chart`, `editor`, `listview`, `value`, `target`, `key`, `index`, …, are declared statically on the interfaces --- they are all resolved dynamically through the COM-extensible `Item(name)` default member.

So:

```tb check_build
With element.ChildDomElements.Add("mySeparator", "h1").Properties
    .style.textAlign = "center"
    .style.color     = "white"
    .innerText       = "Section heading"
End With
```

reads at run time as:

```tb inert=pseudo
.Item("style").Item("textAlign").Value = "center"
.Item("style").Item("color").Value     = "white"
.Item("innerText").Value               = "Section heading"
```

The compiler does not validate the property names; they are forwarded as strings to the IDE's tool-window renderer. The accepted set is **every DOM property of the underlying tag** --- standard HTML attributes, every CSS-style property under `.style.…`, plus any custom-widget-specific properties like `.chart.data.datasets(0).borderWidth` on a `"chartjs"` element or `.editor.setOption(...)` on a `"monaco"` element. The reference does not enumerate them --- defer to MDN for standard DOM property names, to Chart.js for `chartjs` widgets, to Monaco's documentation for `monaco` widgets, and to the matching samples below for the IDE-specific `listview` / `virtuallistview` properties.

## Tool-window DOM tags

[**HtmlElements.Add**](/tB/Packages/tbIDE/HtmlElements.md#add) takes a *TagName* string. Standard HTML tags (`"div"`, `"span"`, `"input"`, `"h1"`, `"label"`, `"img"`, …) work as expected; in addition, the IDE provides four custom-widget tags:

- **`"chartjs"`** --- wraps **Chart.js**. The element exposes a `.chart` property whose sub-properties mirror Chart.js's `data` / `options` / `config` namespaces. See sample 11.
- **`"monaco"`** --- embeds an instance of the **Monaco editor** (the same editor the IDE itself uses for code panes). The element exposes an `.editor` property with `setOption`, `setValue`, `getValue`, and `AddEventListener` (note: event listeners attach to `.editor`, not to the DOM element). See sample 12.
- **`"listview"`** --- the IDE's built-in listview widget. The element exposes a `.listview` property with `addItem`, `removeItem`, `getItem`, `setShowScrollbarV` / `setShowScrollbarH`, and the events `onClickItem` / `onDblClickItem`. See sample 13.
- **`"virtuallistview"`** --- a virtual variant of the listview suitable for huge data sets (millions of rows). The element exposes the same `.listview` property plus `setItemCount` and the asynchronous `onAsyncGetItemHTML` event (the listener responds via `eventInfo.setAsyncResult("<html>")`); call `.listview.notifyChangedItem(idx)` to invalidate the internal cache for one row when its underlying data changes. See sample 14.
- **`"monacoDiff"`** --- two Monaco editors side by side that show the differences between two texts, read-only. The element exposes an `.editor` property with `setOriginalValue`, `setModifiedValue` and `setLanguage`. See sample 26.
- **`"datasheet"`** --- a grid of rows and columns that asks the addin for its data a block of rows at a time, for any number of rows. It has a page of its own: [Datasheet](/tB/Packages/tbIDE/Datasheet.md). See sample 27.

The full per-widget properties and methods are documented by each widget's home project; this package wraps them through the same `[COMExtensible(True)]` mechanism described above.

## Where the samples live

The addin samples, 10 to 16 and 24 to 27, ship in the twinBASIC samples folder. They are the canonical reference for "how to use the package end-to-end" and are referenced throughout the per-class pages.

| Sample | Project | What it teaches |
|--------|---------|-----------------|
| 10 | `WaynesWorldAddInTest1` | The kitchen-sink tour --- toolbar setup, a single big tool window populated with 22 styled `div`-buttons that each exercise a different `Host.*` capability. Start here. |
| 11 | `WaynesWorldCPUMonitorTest1` | [**AddinTimer**](/tB/Packages/tbIDE/AddinTimer.md) + a `"chartjs"` custom-widget tool window powering a live line chart. |
| 12 | `WaynesWorldMonacoEditorTest1` | A `"monaco"` custom-widget tool window: an in-window Monaco editor with `setValue` / `getValue` and a content-change listener. |
| 13 | `WaynesListViewAddIn` | A `"listview"` custom-widget tool window with `ApplyCss`, double-click-to-remove behaviour, and inline-HTML `raiseEvent()` for custom event names. |
| 14 | `WaynesVirtualListViewAddIn` | A `"virtuallistview"` with 5,000,000 rows backed by `onAsyncGetItemHTML` / `setAsyncResult` / `notifyChangedItem`. |
| 15 | `tbGlobalSearchAddIn1` | A full-blown Global Search addin: virtual-FS traversal (**For Each** over [**Folder**](/tB/Packages/tbIDE/Folder.md)), text reading with comment-stripping ([**File.ReadText**](/tB/Packages/tbIDE/File.md#readtext)), editor navigation ([**Editors.Open**](/tB/Packages/tbIDE/Editors.md#open)), persistent options via `GetSetting` / `SaveSetting`. |
| 16 | `WaynesWorldTodoManager` | TODO notes as inline widgets in the code editor ([**CodeEditor.AddMonacoWidget**](/tB/Packages/tbIDE/CodeEditor.md#addmonacowidget)), each at a line, made again when the active editor changes ([**Host.OnChangedActiveEditor**](/tB/Packages/tbIDE/Host.md#onchangedactiveeditor)), listed in a `"listview"` tool window, and kept in the project with [**Project.SaveMetaData**](/tB/Packages/tbIDE/Project.md#savemetadata) / [**LoadMetaData**](/tB/Packages/tbIDE/Project.md#loadmetadata). |
| 24 | `tbHexEditorAddin` | The [Hex Editor](/tB/IDE/AddIns/HexEditor.md) that ships with the IDE: a [designer](/tB/Packages/tbIDE/Designers.md) registered for every file and the default for `.bin` and `.dat`, which edits the bytes and gives them back with [**DesignerHost.SetFileData**](/tB/Packages/tbIDE/DesignerHost.md#setfiledata). |
| 25 | `tbIcoDesignerAddIn` | The [ICO Designer](/tB/IDE/AddIns/IcoEditor.md) that ships with the IDE: a designer with its tools in the TOOLBOX ([**DesignerToolbox**](/tB/Packages/tbIDE/DesignerToolbox.md)), and an [**AddinTimer**](/tB/Packages/tbIDE/AddinTimer.md) that repeats a held button. |
| 26 | `tbDiffCompareAddin` | [Diff Compare](/tB/IDE/AddIns/DiffCompare.md): commands in the Project Explorer's menu ([**Menus**](/tB/Packages/tbIDE/Menus.md)) whose [**BeforeShow**](/tB/Packages/tbIDE/MenuEntry.md#beforeshow) hides them for a folder, a designer opened without a file through [**Editors.Open**](/tB/Packages/tbIDE/Editors.md#open), and the `"monacoDiff"` tag. |
| 27 | `tbDataExplorerAddin` | The [Data Explorer](/tB/IDE/AddIns/DataExplorer.md): an entry in the Project Explorer's **Add** menu that makes a file with [**ProjectExplorer.AddFileUI**](/tB/Packages/tbIDE/ProjectExplorer.md#addfileui), and a [datasheet](/tB/Packages/tbIDE/Datasheet.md) whose rows come from worker threads through [**AsyncResultResolver**](/tB/Packages/tbIDE/HtmlEventProperties.md#asyncresultresolver). |
