Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions WIP.Authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Formatting conventions:
- `**...**` for keywords/literal tokens; `*...*` for placeholders/arguments.
- Code blocks use ` ```tb ` (highlighted via Shiki using the vendored `builder/twinbasic.tmLanguage.json` grammar).
- Parameter lists use the deflist `term` + `: definition` indentation pattern (NOT the MS-style markdown table).
- **The page of a control that has a Toolbox tile starts its opening sentence with the tile's icon** (owner, 2026-11-18): `![](../../../Images/Toolbox/<Control>.png){:width="24" height="24"} A **<Control>** is ...`, the path from the page's folder to `docs/Reference/Images/Toolbox/`. Controls.md has the same image before the control's link. The alt text is empty, since the name stands beside the icon. The pictures come from `shoot_docs.mjs` (setup `toolbox-icons`, [WIP.Screenshots.md](WIP.Screenshots.md#project-setup-pictures-owner)), never from a file made by hand.
- An image names the dark `X.png` only, never `X.light.png`, `X.svg` or `X.light.svg`: the build pairs the two themes and shows each theme's SVG where `shoot_docs --svg` wrote one. `png` in the attribute block (`{:width="190" height="337" png}`) keeps that picture's PNG in every output, and `secondary` shows it at 3/4 of its size in the column (`SECONDARY_SCALE` in `builder/render.mjs`): **an IDE page that shows a picture of the Help Add-In marks it `secondary`** (owner). **Everything an IDE page says about an add-in goes in a `> [!ADDIN] <title>` box** (owner: it does not document the product directly), after the IDE's own behaviour, linking to the section of the add-in's page that has the details ([Authoring, What an add-in adds to the IDE](docs/Documentation/Authoring.md#what-an-add-in-adds-to-the-ide)). It is grey, and a `<details open>` outside the book; the book unwraps it. The rules are in [Authoring, A picture in both themes](docs/Documentation/Authoring.md#a-picture-in-both-themes) and the section after it.

### Attribution policy
Expand Down
14 changes: 14 additions & 0 deletions WIP.BugHunt.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ VB6.
- **A Report's preview** never returns from its first `DoEvents` on a private desktop. May be
misuse, or the private desktop.

Seen on BETA 1042 by a `tbrun` probe of the Data control (a form with `Data1` and `TextBox1`,
a three-row table the probe makes with DAO; not kept). None checked in VB6. On win32 with Jet
the control opens the database, moves through it, and the bound TextBox shows each record.

- **`TextBox.DataField` set before the Data control has a recordset** raises 545, *Unable to
bind to field or DataMember*; set after `Data1.Refresh` it binds. **Page affected**: the
first sample of the Data page binds in `Form_Load` with no `Refresh`. May be the order VB6
needs too.
- **A bound TextBox's `Text` assigned in code**, then `Data1.Recordset.MoveNext`: the record
keeps its old value. May be misuse (VB6 may save only on a move by the control's buttons).
- **win64, `DefaultType = vbUseACE`**: `Data1.Recordset.MoveLast` after a `Refresh` that
opened an `.accdb` is a native exception, and the run ends. The same probe passes on win32
with Jet. Not narrowed: late-bound call, ACE or 64-bit.

### WinNativeCommonCtls

Seen on BETA 1042 by the `commonctls` setup (fixture `test/shots/commonctls`).
Expand Down
1 change: 1 addition & 0 deletions WIP.Contributed.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ is known about the package beyond its pages, is in a file of its own:
- [DetoursLib](WIP.DetoursLib.md)
- [Fmt](WIP.Fmt.md)
- [Generics](WIP.Generics.md)
- [NewTabCtl](WIP.NewTabCtl.md)
- [OLEGuids](WIP.OLEGuids.md)
- [TBMANLIB](WIP.TBMANLIB.md)
- [TBMANLIB_Aes](WIP.TBMANLIB_Aes.md)
Expand Down
21 changes: 21 additions & 0 deletions WIP.NewTabCtl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# NewTabCtl --- working notes

The contributed NewTabCtl package, at `docs/Reference/Contributed/NewTabCtl/`. Rules for every
contributed package: [WIP.Contributed.md](WIP.Contributed.md#rules).

- **The section is a stand-in: its landing page only** (owner, 2026-11-18), listed under
Experimental Packages, so that the Controls page has a page to link to for a VB6 project
that uses SSTab. The **NewTab** control's members are not documented; `analyze` lists them
all as missing.
- **Version 10.0.289.0, TWINSERV's newest, does not compile on BETA 1042** (TB5259, four
`VB_Invoke_Property` attributes that name property pages the package does not hold). Its
`compile/` cases check that, and it is in `PENDING`. The author is EduardoVB, named by the
package's own description; TWINSERV's publisher is WaynePhillipsEA.
- **Page layout, once a version compiles** (owner): one page for the control with its members
as sections, as every control in the reference has, and the helper classes and enumerations
on pages of their own, the enumerations under `Enumerations/` as WinNativeCommonCtls has.
- Upstream, EduardoVB/NewTab, changed its code "for x64 (for twinBASIC)" on 2026-11-10: look
for a new package on TWINSERV (`node indexer/twin-index.mjs sync --query --package NewTabCtl`)
before writing the pages.
- The package's classes and modules marked `VB_Exposed = False` are all reachable from a
project that references it.
11 changes: 10 additions & 1 deletion WIP.Screenshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Exit codes: 0 every picture written or unchanged, 1 a picture failed, 2 the tool
restarted on an empty licence key in the page) and `splash` (the demo, for the splash
alone), `programs`, `vbflexgrid`, `xcalendar`, `dialogs`, `webview2`, `cef`, `codelens`, `memory`, `package` and `fusion` (pictures of a running program),
`package-server`, `settings-linked` and `package-check`, `import`, `webpage` and `web` (a
Chrome, not an IDE), `featuremap`, `tour`, `code-chapter`, `debugging`, `assert`, `forms-chapter`, `projects`, `projects-refs`,
Chrome, not an IDE), `featuremap`, `tour`, `code-chapter`, `debugging`, `assert`, `forms-chapter`, `toolbox-icons`, `projects`, `projects-refs`,
`projects-start`, the `building`, `starting` and `troubleshooting` setups, `customcontrols`, `code` and `sample9` (all described
below). A setup is `{name, start, prepare}`, with `closing` to read what only its page can say
before the IDE ends, `end` to check or give back what it holds after, and `noPage` for a setup with
Expand Down Expand Up @@ -1153,6 +1153,15 @@ the project's, and the tutorial says so.
- **History's times are fixed in the page**, as the recent lists are, and its project is a
project-made fixture.
- **The glyph crops** are element clips, 2x, shown at half size.
- **A control's Toolbox icon is a picture of its own** (owner, 2026-11-18), taken like a glyph:
setup `toolbox-icons`, FormsDemo with `frmMain` in its designer and the Toolbox showing icons
only, each tile's 24-pixel icon box clipped (`toolboxIconShot`, the names in `TOOLBOX_ICONS`)
into `docs/Reference/Images/Toolbox/<Control>.png`. With `--svg` the SVG holds the IDE's own
icon file, so it stays sharp at any zoom. The control's class page shows it before its opening
sentence and Controls.md before the control's link, with an empty alt text, since the name
stands beside it ([WIP.Authoring.md](WIP.Authoring.md#page-template)). A control added to the
Toolbox gets a name in `TOOLBOX_ICONS`; one of a package FormsDemo does not reference
(CustomControls, WebView2, CEF) has no picture yet.
- **A machine or account value becomes a neutral one** (Publisher blank or a project-made name;
the COM list shows this machine's, under the username check), and prose that names the old
value is changed to match.
Expand Down
4 changes: 2 additions & 2 deletions builder/page-baseline.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"src": "docs",
"pages": 1549,
"staticFiles": 1347
"pages": 1550,
"staticFiles": 1471
}
6 changes: 6 additions & 0 deletions docs/Documentation/Authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,12 @@ Give a picture its `{:width="..." height="..."}`. A figure at least as tall as t

A picture of something the page mentions only in passing --- on an IDE page, what an add-in adds to the IDE --- can be shown smaller: put `secondary` in its attribute block, `{:width="1016" height="723" secondary}`. The page keeps the picture's own size, and the build shows it at three quarters of the size it would otherwise have in the column. **Zoom** shows it as large as it would show it without the word. The build takes the word out of the page.

The reference page of a control that has a tile in the IDE's Toolbox starts its opening sentence with the tile's icon, and the [Controls](../../tB/Controls) page shows the same icon before the control's link. The pictures are in `docs/Reference/Images/Toolbox/`, one for each control, and `scripts/shoot_docs.mjs` takes them. The alt text is empty, because the control's name stands beside the icon:

```markdown
![](../../../Images/Toolbox/Label.png){:width="24" height="24"} A **Label** is a windowless lightweight control ...
```

### A picture in both themes

A screenshot of the IDE shows one of its themes, and the site has two. To give a picture a version for the light theme, save it beside the first one under the same name with `.light` before the extension:
Expand Down
1 change: 1 addition & 0 deletions docs/Documentation/Tools-IDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Takes the documentation's screenshots of the IDE, so that one run regenerates th
- **sample**, **settings** and **glyphs** open `test/shots/sample`, a small Standard EXE made for the pictures. They take the panels and the editor with a project, Project Settings (with the settings files of `test/shots/settings`), and the icons the pages show inline.
- Further setups each bring the IDE to one state the setups above do not need:
- the Community Edition and LIMITED badges and the splash screen;
- the icon of each control in the Toolbox, one picture each under `docs/Reference/Images/Toolbox/`, which the control's reference page and the [Controls](../../tB/Controls) page show;
- the programs under `test/shots/programs`, run so that their windows can be taken, and the CodeLens, TWINPACK build and Fusion pictures;
- the package server's dialogs, which need the network and never publish anything;
- the Import from twinproj dialog, for a VB6 project made for the picture (`test/shots/vbp`);
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Built-In/WinNativeCommonCtls/DTPicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# DTPicker class
{: .no_toc }

A **DTPicker** is a date / time picker control. The inline field shows the current date or time formatted per [**Format**](#format); clicking the dropdown arrow opens a [**MonthView**](MonthView)-style calendar for picking a new date, and dismissing the calendar updates [**Value**](#value).
![](../../Images/Toolbox/DTPicker.png){:width="24" height="24"} A **DTPicker** is a date / time picker control. The inline field shows the current date or time formatted per [**Format**](#format); clicking the dropdown arrow opens a [**MonthView**](MonthView)-style calendar for picking a new date, and dismissing the calendar updates [**Value**](#value).

![Date pickers set to January 14, 2025, 3:45 PM: in the long date, time and custom formats, with spin buttons in place of the drop-down button, with a check box, and in the short date format with its calendar dropped down below it](Images/DTPicker.png){:width="561" height="409"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# ImageList class
{: .no_toc }

An **ImageList** is an off-screen container for pictures, all of which are scaled to the same [**ImageWidth**](#imagewidth) × [**ImageHeight**](#imageheight) bitmap size. The control has no visible representation at run time --- its purpose is to feed icons to other controls that consume them through their [**Icons**](../ListView/#icons), [**SmallIcons**](../ListView/#smallicons), [**ColumnHeaderIcons**](../ListView/#columnheadericons), or [**ImageList**](../TreeView/#imagelist) properties.
![](../../../Images/Toolbox/ImageList.png){:width="24" height="24"} An **ImageList** is an off-screen container for pictures, all of which are scaled to the same [**ImageWidth**](#imagewidth) × [**ImageHeight**](#imageheight) bitmap size. The control has no visible representation at run time --- its purpose is to feed icons to other controls that consume them through their [**Icons**](../ListView/#icons), [**SmallIcons**](../ListView/#smallicons), [**ColumnHeaderIcons**](../ListView/#columnheadericons), or [**ImageList**](../TreeView/#imagelist) properties.

```tb check_build
Private Sub Form_Load()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# ListView class
{: .no_toc }

A **ListView** is a list of items, shown as large icons, small icons, a plain list or a table of columns. It has four distinct visual modes, selected through the [**View**](#view) property:
![](../../../Images/Toolbox/ListView.png){:width="24" height="24"} A **ListView** is a list of items, shown as large icons, small icons, a plain list or a table of columns. It has four distinct visual modes, selected through the [**View**](#view) property:

| [**View**](#view) | Description |
|--------------------------------|------------------------------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Built-In/WinNativeCommonCtls/MonthView.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# MonthView class
{: .no_toc }

A **MonthView** is a full-month calendar grid: a visible matrix of [**MonthColumns**](#monthcolumns) × [**MonthRows**](#monthrows) month panels, navigable forwards and backwards through the month headers, with optional today indicator, week numbers, and bold-day highlighting through the [**GetDayBold**](#getdaybold) callback event. Unlike [**DTPicker**](DTPicker) --- which shows only its inline value field and pops the calendar on demand --- a **MonthView** is always visible on the form.
![](../../Images/Toolbox/MonthView.png){:width="24" height="24"} A **MonthView** is a full-month calendar grid: a visible matrix of [**MonthColumns**](#monthcolumns) × [**MonthRows**](#monthrows) month panels, navigable forwards and backwards through the month headers, with optional today indicator, week numbers, and bold-day highlighting through the [**GetDayBold**](#getdaybold) callback event. Unlike [**DTPicker**](DTPicker) --- which shows only its inline value field and pops the calendar on demand --- a **MonthView** is always visible on the form.

![A MonthView showing December 2024 and January 2025 side by side with week numbers, January 14 to 17 selected, December 25, January 1 and January 20 in bold, and the line Today: 1/14/2025](Images/MonthView.png){:width="473" height="220"}

Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Built-In/WinNativeCommonCtls/ProgressBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# ProgressBar class
{: .no_toc }

A **ProgressBar** is a horizontal or vertical bar that visually represents progress through a range. Three configurable axes shape the visual: [**Scrolling**](#scrolling) (standard / smooth / marquee), [**State**](#state) (Normal / Error / Paused, which tints the bar to match the OS theme), and [**Orientation**](#orientation) (horizontal or vertical).
![](../../Images/Toolbox/ProgressBar.png){:width="24" height="24"} A **ProgressBar** is a horizontal or vertical bar that visually represents progress through a range. Three configurable axes shape the visual: [**Scrolling**](#scrolling) (standard / smooth / marquee), [**State**](#state) (Normal / Error / Paused, which tints the bar to match the OS theme), and [**Orientation**](#orientation) (horizontal or vertical).

```tb hidden
Public ItemCount As Long
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Built-In/WinNativeCommonCtls/Slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# Slider class
{: .no_toc }

A **Slider** is a trackbar control --- a horizontal or vertical channel with a draggable thumb that lets the user pick a value between [**Min**](#min) and [**Max**](#max). Optional tick marks, a floating value tip, and a highlighted selection range round out the control.
![](../../Images/Toolbox/Slider.png){:width="24" height="24"} A **Slider** is a trackbar control --- a horizontal or vertical channel with a draggable thumb that lets the user pick a value between [**Min**](#min) and [**Max**](#max). Optional tick marks, a floating value tip, and a highlighted selection range round out the control.

![Sliders from 0 to 10 with the thumb at 4: tick marks below, above, on both sides and none, a selection range from 3 to 7 drawn in a wider channel with its ends marked under it, no thumb, and two vertical sliders with ticks on the right and on both sides](Images/Slider.png){:width="621" height="321"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# TreeView class
{: .no_toc }

A **TreeView** is a hierarchical display of [**Node**](Node) objects organized into a tree. Each node can be expanded or collapsed, optionally has a checkbox, and references an icon from an associated [**ImageList**](../ImageList/). The collection of nodes is accessed through [**Nodes**](#nodes); each [**Node**](Node) has its own siblings, parent, and child navigation properties.
![](../../../Images/Toolbox/TreeView.png){:width="24" height="24"} A **TreeView** is a hierarchical display of [**Node**](Node) objects organized into a tree. Each node can be expanded or collapsed, optionally has a checkbox, and references an icon from an associated [**ImageList**](../ImageList/). The collection of nodes is accessed through [**Nodes**](#nodes); each [**Node**](Node) has its own siblings, parent, and child navigation properties.

```tb check_build
Private Sub Form_Load()
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Built-In/WinNativeCommonCtls/UpDown.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_toc: false
# UpDown class
{: .no_toc }

An **UpDown** is a small spin control --- a pair of up / down arrow buttons that adjust an internal [**Value**](#value) by [**Increment**](#increment) on each click. Often paired with an external textbox or label to display the current value.
![](../../Images/Toolbox/UpDown.png){:width="24" height="24"} An **UpDown** is a small spin control --- a pair of up / down arrow buttons that adjust an internal [**Value**](#value) by [**Increment**](#increment) on each click. Often paired with an external textbox or label to display the current value.

```tb check_build
Private Sub Form_Load()
Expand Down
27 changes: 27 additions & 0 deletions docs/Reference/Contributed/NewTabCtl/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: NewTabCtl Package
parent: Experimental Packages
has_toc: false
indexed_from: 10.0.289.0
permalink: /tB/Packages/Contributed/NewTabCtl/
---

# NewTabCtl Package
{: .no_toc }

**Author:** EduardoVB. **Version:** 10.0.289.0. **On GitHub:** [EduardoVB/NewTab](https://github.com/EduardoVB/NewTab)

The **NewTabCtl** contributed package provides the **NewTab** control, a container with a row of tabs, each of which shows its own set of controls.

The control is EduardoVB's tab control for VB6, published on GitHub as an ActiveX control. This package is the same code as a twinBASIC package, so a project needs no OCX to be registered. The package describes itself as "NewTab: tabbed control (by EduardoVB, experimental 64-bit compatible version)". Its tab orientation constants keep the names of those of the VB6 SSTab control (`TABCTL32.OCX`), such as `ssTabOrientationTop`. This section documents version 10.0.289.0, published under the MIT licence.

<!-- test: compile IconCharHex_PropertyPageNotFound, compile HighlightMode_PropertyPageNotFound, compile HighlightModeSelectedTab_PropertyPageNotFound, compile Theme_PropertyPageNotFound -->
> [!NOTE] 10.0.289.0, BETA 1042
> The package does not compile, so a project that references it does not build. Four properties of the **NewTab** control, **IconCharHex**, **HighlightMode**, **HighlightModeSelectedTab** and **Theme**, each name a property page in a `VB_Invoke_Property` attribute: `pagNewTabIcons`, `pagHighlightMode` or `pagNewTabThemes`. The package holds no property page of those names, and twinBASIC reports each attribute with TB5259, *Failed to find named PropertyPage*.

This section has this page only. The members of the **NewTab** control are not documented yet.

## See Also

- [Experimental Packages](../../Experimental/) -- the packages from TWINSERV that are not yet ready for use in a program
- [Controls](../../../Controls#vb6-controls) -- where each VB6 control is in twinBASIC
Loading
Loading