diff --git a/WIP.Contributed.md b/WIP.Contributed.md index 443788f7e..75e7980e0 100644 --- a/WIP.Contributed.md +++ b/WIP.Contributed.md @@ -9,7 +9,7 @@ what it is, in [WIP.PackageTests.md](WIP.PackageTests.md). ## Rules -- **A package's landing page opens, under its H1, with `**Author:**`** (owner): the publisher TWINSERV lists (`publisher` in `indexer/.packages/manifests/contributed.json`), or the author the package's own sources name when that is someone else (VBA_JSON: Tim Hall, published by WaynePhillipsEA). Next to the author, on the same line, `**Version:**`: the version the section documents, which is its `indexed_from` and changes with it (owner). Then `**On GitHub:**` with a link, when a repository holds the package, or the library the package says it is made from; search GitHub for the package's name and the author's account, and check that the repository holds the package's code (its history too: `TBMANLIB_*` were never in woeoio's `tbman`). A landing page with one or two sections has no `* TOC` list. A class with member pages is a folder, `/index.md` at `/tB/Packages/Contributed///` with its members beside it, so a member links to its class as `(.)`; a class documented on one page is `.md`. Each package that is not Experimental is a chapter of the book's Packages part in `_book.yml`. A section's `indexed_from` is the four-part TWINSERV version, and its snapshot is under `indexer/snapshots/contributed/`. **Every NOTE and WARNING of a section is backed by test cases** in the package's test project, `test/package-tests//` (owner; [its README](test/package-tests/README.md)), and names them in a `` marker on the line above it, which `check_package_tests.mjs` in `test.bat` enforces. **A NOTE or WARNING is only for a real difference or limit** (owner): a statement that describes how the package works stays prose, tied to its cases by a region, the marker on a line of its own above it and `` after it (owner). A difference from the object the package replaces that gives a different result silently (tbRegExp's `\1(a)`, `{,m}`, `$~` against VBScript) is a NOTE, not a WARNING (owner). A case checks what is correct, not what the package does (owner): a defect is a failing case, recorded in the project's `expect.json`, so the project tells the package's author what to fix. **A structure that ends in a dynamic array where C has an inline one** (`Items() As T` for `T Items[1]`) **is WinDevLib's deliberate convention, not a defect** (fafalone, 2026-11-17): the program copies the fixed part from a pointer to the raw block, `ReDim`s the array by the structure's count or size field, then copies the entries into `VarPtr(a(0))`. Never report it to WinDevLib, or call it a defect on a page of a package that follows that convention; a page describes the convention instead. Whether one is a defect depends on the package's own convention: tbKMode's six were defects for tbKMode (fixed in 0.3.0.5 as `(0 To 0)`, its upstream issue #2). Before drafting an issue about one, check which convention the package follows. **A declaration that differs from the newest WDK or SDK but is right for the kit the package was written from is not a defect** (owner, 2026-11-17): a package does not claim to follow the newest kit. Find that kit by what the package matches (tbKMode's modSysInfo: the 10.0.22621 SDK, whose `POLICY_AUDIT_SUBCATEGORY_COUNT` is 59 and which has no `FileFsGuidInformation`); a case then checks that kit's value, no callout reports the difference and no issue is drafted about it, and a page may say in prose which kit the value is from. A section whose project is not written yet is in that gate's `PENDING` set. **A package that does not compile on the newest BETA gets no test project** (owner: ArrayListLib, WinReg, Generics): it stays in `PENDING` until a version of it compiles, and a `compile/` folder alone names the rows that refuse it, so its "does not compile" is checked. One that compiles for one architecture only is tested on that one (owner: TBMANLIB, win32; `arches` in its `expect.json`, test/package-tests/README.md), with a compile case for the other. A case that the IDE's own process would change goes in the package folder's `exe/`, which `package_tests.mjs` runs in a built exe (GdiPlus: the IDE has started GDI+; TBMANLIB: an HTTPS server of its own). `package-tests.bat` runs the cases; a case it reports *fixed* means the callout goes. **The landing page ends, after See Also, with `## Test cases`**: one or two sentences linking to `-tests.twinproj` (owner), which the build publishes beside the section without the package's code in it (owner; one exception, owner: TBMANLIB_ConsoleComponents' project carries verbatim copies of seven of its component files, in `Sources/ComponentSources/`, because the package's own components cannot be given a console object, and its drawing can be checked only on the copies): it references the package as a linked package, which the reader puts in `%APPDATA%\twinBASIC\packages` ([WIP.PackageTests.md](WIP.PackageTests.md)). Its samples compile in the `contributed-` sample template, whose `Settings` names the package's version: **change that version with `indexed_from`** ([WIP.ExamplesBuild.md](WIP.ExamplesBuild.md#template-projects)). **A contributed package is documented and its samples compiled against the newest twinBASIC BETA installed, never an older one** (owner): the version that matters is the package's, and a statement about the compiler (such as "does not compile on BETA 1010") names that newest build. **A contributed package that does not compile on that build, or has defects that a program would meet, is listed under Experimental Packages** (owner); a minor defect that the section documents does not make it Experimental (owner: VBComDlg, whose Replace All raises no event, stays Contributed; owner: nor does a fixed limit that the section states at the top of its landing page; owner: tsJson 1.0.15.0 stays Contributed, its defects confirmed by a second agent and each stated in a WARNING with a way round it; owner: xCalendar 1.0.17.0 is Contributed, its text colours working on BETA 1034, its grid and edge-press defects stated in a WARNING). **A package moves from Contributed to Experimental for its defects only after a separate agent has reproduced each defect independently** and ruled out misuse, a wrong expectation, a twinBASIC defect and the harness (owner). **Before any package moves to Experimental, for its defects or because it does not compile, its section is updated to the newest version on TWINSERV** (owner, 2026-11-09): `node indexer/twin-index.mjs sync --upgrade --package ` gives that version; a newer one is documented first (its pages, `indexed_from`, snapshot, sample template and test project), and the move goes ahead only if the newest version still has the defects or still does not compile. The move itself: `docs/Reference/Experimental.md`, at `/tB/Packages/Experimental/`, after Contributed Packages. Its landing page's `parent:` is `Experimental Packages`, its line is in `Experimental.md` and not in `Contributed.md`, and it has no chapter in the PDF book (owner: the book is for packages ready for use in a program): its entry is in `left_out:` of `docs/_book.yml`, in the list of Experimental packages, and the Experimental Packages page is left out with it. Its folder and URLs stay under `Contributed/`, so a package that is fixed moves back by changing only those three and the book (its entry leaves `left_out:` and its chapter is added after VBComDlg's), and its pages keep their addresses. A link from a book page to a left-out one opens the website. +- **A package's landing page opens, under its H1, with `**Author:**`** (owner): the publisher TWINSERV lists (`publisher` in `indexer/.packages/manifests/contributed.json`), or the author the package's own sources name when that is someone else (VBA_JSON: Tim Hall, published by WaynePhillipsEA). Next to the author, on the same line, `**Version:**`: the version the section documents, which is its `indexed_from` and changes with it (owner). Then `**On GitHub:**` with a link, when a repository holds the package, or the library the package says it is made from; search GitHub for the package's name and the author's account, and check that the repository holds the package's code (its history too: `TBMANLIB_*` were never in woeoio's `tbman`). A landing page with one or two sections has no `* TOC` list. A class with member pages is a folder, `/index.md` at `/tB/Packages/Contributed///` with its members beside it, so a member links to its class as `(.)`; a class documented on one page is `.md`. Each package that is not Experimental is a chapter of the book's Packages part in `_book.yml`. A section's `indexed_from` is the four-part TWINSERV version, and its snapshot is under `indexer/snapshots/contributed/`. **Every NOTE and WARNING of a section is backed by test cases** in the package's test project, `test/package-tests//` (owner; [its README](test/package-tests/README.md)), and names them in a `` marker on the line above it, which `check_package_tests.mjs` in `test.bat` enforces. **A NOTE or WARNING is only for a real difference or limit** (owner): a statement that describes how the package works stays prose, tied to its cases by a region, the marker on a line of its own above it and `` after it (owner). A difference from the object the package replaces that gives a different result silently (tbRegExp's `\1(a)`, `{,m}`, `$~` against VBScript) is a NOTE, not a WARNING (owner). A case checks what is correct, not what the package does (owner): a defect is a failing case, recorded in the project's `expect.json`, so the project tells the package's author what to fix. **A structure that ends in a dynamic array where C has an inline one** (`Items() As T` for `T Items[1]`) **is WinDevLib's deliberate convention, not a defect** (fafalone, 2026-11-17): the program copies the fixed part from a pointer to the raw block, `ReDim`s the array by the structure's count or size field, then copies the entries into `VarPtr(a(0))`. Never report it to WinDevLib, or call it a defect on a page of a package that follows that convention; a page describes the convention instead. Whether one is a defect depends on the package's own convention: tbKMode's six were defects for tbKMode (fixed in 0.3.0.5 as `(0 To 0)`, its upstream issue #2). Before drafting an issue about one, check which convention the package follows. **A declaration that differs from the newest WDK or SDK but is right for the kit the package was written from is not a defect** (owner, 2026-11-17): a package does not claim to follow the newest kit. Find that kit by what the package matches (tbKMode's modSysInfo: the 10.0.22621 SDK, whose `POLICY_AUDIT_SUBCATEGORY_COUNT` is 59 and which has no `FileFsGuidInformation`); a case then checks that kit's value, no callout reports the difference and no issue is drafted about it, and a page may say in prose which kit the value is from. A section whose project is not written yet is in that gate's `PENDING` set. **A package that does not compile on the newest BETA gets no test project** (owner: ArrayListLib, WinReg, Generics): it stays in `PENDING` until a version of it compiles, and a `compile/` folder alone names the rows that refuse it, so its "does not compile" is checked. One that compiles for one architecture only is tested on that one (owner: TBMANLIB, win32; `arches` in its `expect.json`, test/package-tests/README.md), with a compile case for the other. A case that the IDE's own process would change goes in the package folder's `exe/`, which `package_tests.mjs` runs in a built exe (GdiPlus: the IDE has started GDI+; TBMANLIB: an HTTPS server of its own). `package-tests.bat` runs the cases; a case it reports *fixed* means the callout goes. **The landing page ends, after See Also, with `## Test cases`**: one or two sentences linking to `-tests.twinproj` (owner), which the build publishes beside the section without the package's code in it (owner; one exception, owner: TBMANLIB_ConsoleComponents' project carries verbatim copies of seven of its component files, in `Sources/ComponentSources/`, because the package's own components cannot be given a console object, and its drawing can be checked only on the copies): it references the package as a linked package, which the reader puts in `%APPDATA%\twinBASIC\packages` ([WIP.PackageTests.md](WIP.PackageTests.md)). Its samples compile in the `contributed-` sample template, whose `Settings` names the package's version: **change that version with `indexed_from`** ([WIP.ExamplesBuild.md](WIP.ExamplesBuild.md#template-projects)). **A contributed package is documented and its samples compiled against the newest twinBASIC BETA installed, never an older one** (owner): the version that matters is the package's, and a statement about the compiler (such as "does not compile on BETA 1010") names that newest build. **A contributed package that does not compile on that build, or has defects that a program would meet, is listed under Experimental Packages** (owner); a minor defect that the section documents does not make it Experimental (owner: VBComDlg 1.0.13.0, whose Replace All raised no event, stayed Contributed; owner: nor does a fixed limit that the section states at the top of its landing page; owner: tsJson 1.0.15.0 stays Contributed, its defects confirmed by a second agent and each stated in a WARNING with a way round it; owner: xCalendar 1.0.17.0 is Contributed, its text colours working on BETA 1034, its grid and edge-press defects stated in a WARNING). **A package moves from Contributed to Experimental for its defects only after a separate agent has reproduced each defect independently** and ruled out misuse, a wrong expectation, a twinBASIC defect and the harness (owner). **Before any package moves to Experimental, for its defects or because it does not compile, its section is updated to the newest version on TWINSERV** (owner, 2026-11-09): `node indexer/twin-index.mjs sync --upgrade --package ` gives that version; a newer one is documented first (its pages, `indexed_from`, snapshot, sample template and test project), and the move goes ahead only if the newest version still has the defects or still does not compile. The move itself: `docs/Reference/Experimental.md`, at `/tB/Packages/Experimental/`, after Contributed Packages. Its landing page's `parent:` is `Experimental Packages`, its line is in `Experimental.md` and not in `Contributed.md`, and it has no chapter in the PDF book (owner: the book is for packages ready for use in a program): its entry is in `left_out:` of `docs/_book.yml`, in the list of Experimental packages, and the Experimental Packages page is left out with it. Its folder and URLs stay under `Contributed/`, so a package that is fixed moves back by changing only those three and the book (its entry leaves `left_out:` and its chapter is added after VBComDlg's), and its pages keep their addresses. A link from a book page to a left-out one opens the website. - `package-tests.bat` --- runs the test projects of the contributed packages named (in any case: `tbregexp`), or of every one with `--all-packages`, which is never the default and leaves out GdiPlus, run only when named (owner; `ALL_PACKAGES_SKIP` in `lib/package-tests.mjs`, which np4 in the launcher repository reads too) (`scripts/package_tests.mjs`): each project under `test/package-tests/` is staged with its package embedded and run with `tbrun --tests` as 32-bit and 64-bit, and each case is judged against `expect.json` as *documented*, *fixed* (the callout goes) or *changed* (a claim of the page is no longer true). `--update` writes `expect.json` from the run; read every entry it writes, since each is a claim that the package is defective. A case that never returns is caught and run alone. It also rewrites the generated `RunAll.twin`. Outside every gate and CI, as `examples.bat` is. The build publishes each project, referencing the package as a linked package and carrying none of its code, as `tB/Packages/Contributed//-tests.twinproj` in the online tree (the `packageTests` task, `builder/package-tests.mjs`, `_config.yml`'s `package_tests`; the publish allowlist exempts those paths, and the offline tree's links go to the website). diff --git a/WIP.VBCCR18.md b/WIP.VBCCR18.md index 34eb83dc0..5282957b7 100644 --- a/WIP.VBCCR18.md +++ b/WIP.VBCCR18.md @@ -31,7 +31,7 @@ without a page in bold, with no link; link it when its page exists. ## The package -- 1.8.136.0 compiles on BETA 1042 for win32 and win64, embedded with its own copy of OLEGuids. +- 1.8.141.0 compiles on BETA 1042 for win32 and win64, embedded with its own copy of OLEGuids. - The controls are the classes marked `[COMControl]`. Each is a VB6 UserControl that makes a window of Windows' own control inside itself, so `hWnd` (that window) and `hWndUserControl` differ. diff --git a/docs/Reference/Contributed/AutoCompleteLib/AutoComplete.md b/docs/Reference/Contributed/AutoCompleteLib/AutoComplete.md index 6225dbd8e..ffa4da3b4 100644 --- a/docs/Reference/Contributed/AutoCompleteLib/AutoComplete.md +++ b/docs/Reference/Contributed/AutoCompleteLib/AutoComplete.md @@ -167,7 +167,7 @@ Calling **Init** with **AutoCompleteSourceNone**, or with any other value outsid If the internal `IAutoComplete2` object could not be created when the **AutoComplete** object was created, **Init** exits silently. -> [!NOTE] 1.0.3.0 +> [!NOTE] 1.0.4.0 > An **AutoComplete** object attaches to one window, once. A second call to **Init** on the same object, for the same window or for another, raises run-time error -2147467259 (Automation error) and attaches nothing. Create one **AutoComplete** object for each text box. ### Refresh diff --git a/docs/Reference/Contributed/AutoCompleteLib/index.md b/docs/Reference/Contributed/AutoCompleteLib/index.md index 60f502476..160b93533 100644 --- a/docs/Reference/Contributed/AutoCompleteLib/index.md +++ b/docs/Reference/Contributed/AutoCompleteLib/index.md @@ -2,14 +2,14 @@ title: AutoCompleteLib Package parent: Contributed Packages has_toc: false -indexed_from: 1.0.3.0 +indexed_from: 1.0.4.0 permalink: /tB/Packages/Contributed/AutoCompleteLib/ --- # AutoCompleteLib Package {: .no_toc } -**Author:** Krool. **Version:** 1.0.3.0 +**Author:** Krool. **Version:** 1.0.4.0 The **AutoCompleteLib** contributed package provides Windows shell auto-complete behavior for text-input controls. The package references the **AutoCompleteGuids** package, which holds the GUID and interface definitions the class uses. diff --git a/docs/Reference/Contributed/VBCCR18/ComboBoxW.md b/docs/Reference/Contributed/VBCCR18/ComboBoxW.md index 587199556..4c1fbb843 100644 --- a/docs/Reference/Contributed/VBCCR18/ComboBoxW.md +++ b/docs/Reference/Contributed/VBCCR18/ComboBoxW.md @@ -411,7 +411,7 @@ The selected text of the text box. **String**. An assignment replaces the select Whether [**AddItem**](#additem) without an index puts each new item in alphabetical order. **Boolean**. Default: **False**. An **AddItem** with an index puts the item at that index all the same. -> [!NOTE] 1.8.137.0 +> [!NOTE] 1.8.141.0 > An assignment of **True** at run time does not sort the items already in the list, and the items added afterward are placed as if the list were sorted. Set **Sorted** before the first item is added. ### Style diff --git a/docs/Reference/Contributed/VBCCR18/CommandLink.md b/docs/Reference/Contributed/VBCCR18/CommandLink.md index cc94e2573..5f60dadd5 100644 --- a/docs/Reference/Contributed/VBCCR18/CommandLink.md +++ b/docs/Reference/Contributed/VBCCR18/CommandLink.md @@ -46,7 +46,7 @@ CommandLink1.Height = CommandLink1.GetIdealHeight() ``` -> [!NOTE] 1.8.137.0 +> [!NOTE] 1.8.141.0 > **GetIdealHeight** does not count the lines that a note wraps to: it returns the same height for a note of one word and for one that the control's width breaks into three lines. A control given that height cuts off every line of the note after the first. For a longer note, set the height that shows it. The arrow at the left gives way to a picture of the program's: the icon or bitmap in [**Picture**](#picture), or the picture of an [**ImageList**](ImageList/) control assigned to [**ImageList**](#imagelist). [**SetShield**](#setshield) puts the shield of an action that needs elevation there. diff --git a/docs/Reference/Contributed/VBCCR18/CommonDialog.md b/docs/Reference/Contributed/VBCCR18/CommonDialog.md index c3bdc539b..5da5f5c14 100644 --- a/docs/Reference/Contributed/VBCCR18/CommonDialog.md +++ b/docs/Reference/Contributed/VBCCR18/CommonDialog.md @@ -42,10 +42,9 @@ It is a class, not a control: a program makes one with **New**, sets its propert ## The same class as VBComDlg's -The [VBComDlg](../VBComDlg/) package is the same class, Krool's, as a package of its own, documented at [**CommonDialog**](../VBComDlg/CommonDialog). The two share all their code but one line: +The [VBComDlg](../VBComDlg/) package is the same class, Krool's, as a package of its own, documented at [**CommonDialog**](../VBComDlg/CommonDialog). The two share their code: - **The same in both**: every property, method and event, with the same names, types and defaults, the same values refused with run-time error 380 and the same errors from the dialogs; and every enumeration, with the same members and values. -- **The [ReplaceAll](#findnext-replace-replaceall) event**: this class raises it when the user clicks **Replace All** in the Replace dialog. VBComDlg's class never raises it. - **The package**: this class comes with the package's controls, and the [**MCIWnd**](MCIWnd) control uses it for its Open and Save As dialogs. VBComDlg is for a program that needs the dialogs and none of the controls. In a project that references both packages, a declaration names the package: `Dim Dlg As VBCCR18.CommonDialog`. diff --git a/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBand.md b/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBand.md index 3a0f37a2f..7886c7a0c 100644 --- a/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBand.md +++ b/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBand.md @@ -62,7 +62,7 @@ An assignment to **Position** that leaves the band where it is, such as its own [**Child**](#child) is the control the band holds, and the cool bar keeps it in the band's area: see [Holding a control](.#holding-a-control). [**ChildEdge**](#childedge) draws an edge at the top and the bottom of the area. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A control that **Child** refuses, with run-time error 380, is kept all the same: **Child** returns the control that was refused, though the band does not hold it. A program that catches the error assigns **Nothing** to **Child**. Properties diff --git a/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBands.md b/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBands.md index b28ef30d1..9fe229e74 100644 --- a/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBands.md +++ b/docs/Reference/Contributed/VBCCR18/CoolBar/CbrBands.md @@ -115,7 +115,7 @@ An *Index* below 0, and one above [**Count**](#count) + 1, raises run-time error -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A call that raises error 457 for its key has already put its band into the cool bar. The collection is as it was, and the cool bar shows one band more than [**Count**](#count) says, which no **CbrBand** reaches. A program asks [**Exists**](#exists) before it adds a band with a key that the cool bar may have. ### Clear diff --git a/docs/Reference/Contributed/VBCCR18/CoolBar/index.md b/docs/Reference/Contributed/VBCCR18/CoolBar/index.md index 1006ddbef..b0bdf4e97 100644 --- a/docs/Reference/Contributed/VBCCR18/CoolBar/index.md +++ b/docs/Reference/Contributed/VBCCR18/CoolBar/index.md @@ -146,7 +146,7 @@ Properties The edge of the form that the control is attached to, where it takes the form's whole width or height. A member of [**AlignConstants**](../../../VBRUN/Constants/AlignConstants). Default: **vbAlignNone**. -> [!NOTE] 1.8.137.0, BETA 1042 +> [!NOTE] 1.8.141.0, BETA 1042 > twinBASIC has not implemented **Align**: an assignment compiles with the warning TB0009 and changes nothing, and the property goes on returning **vbAlignNone**. A program places and sizes the cool bar itself. ```tb probe check_run arch=win32,win64 id=coolbar-align diff --git a/docs/Reference/Contributed/VBCCR18/FontCombo.md b/docs/Reference/Contributed/VBCCR18/FontCombo.md index 0c8e3545f..ded09b5bf 100644 --- a/docs/Reference/Contributed/VBCCR18/FontCombo.md +++ b/docs/Reference/Contributed/VBCCR18/FontCombo.md @@ -148,7 +148,7 @@ The buddy's list changes whenever the selection of this control changes by the u -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A font selected with [**SelectItem**](#selectitem) does not change the list of the buddy, which then shows the sizes of the font selected before, or none. A program that uses a buddy selects a font with **ListIndex** or **Text**. ```tb hidden @@ -493,11 +493,11 @@ An empty string, and a name that is not in the list, is skipped, and the names b -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A name that the list does not have, followed by a name that it has, leaves the recent fonts wrong. [**RecentCount**](#recentcount) counts every name that was found, but the list gets no entry for the names after the unknown one, so the control takes the first fonts of the complete list for recent ones and draws them in the colors of the recent fonts. An array that [**SaveRecent**](#saverecent) returned on a machine with other fonts can hold such a name. A program removes the names that [**FindItem**](#finditem) does not find before it calls **RestoreRecent**. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > With [**RecentMax**](#recentmax) at 0, its default, **RestoreRecent** removes fonts from the list: as many from its top as the array has names, so that [**ListCount**](#listcount) is smaller and the first fonts are missing. A program sets **RecentMax** before it calls **RestoreRecent**. ### SaveRecent diff --git a/docs/Reference/Contributed/VBCCR18/IPAddress.md b/docs/Reference/Contributed/VBCCR18/IPAddress.md index 37281b728..90e90133e 100644 --- a/docs/Reference/Contributed/VBCCR18/IPAddress.md +++ b/docs/Reference/Contributed/VBCCR18/IPAddress.md @@ -220,7 +220,7 @@ As the [common events](Common#mousedown-mousemove-mouseup) of these names. Over -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > Over the border of the control and over the dots between the fields, *X* and *Y* are in pixels, not in twips. A program that uses the position converts those values itself, or ignores the events there. ### SelChange diff --git a/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItem.md b/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItem.md index 7454cd624..477e5daa3 100644 --- a/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItem.md +++ b/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItem.md @@ -100,7 +100,7 @@ An assignment takes a number: a key raises run-time error 13. [**SelImageIndex** -> [!NOTE] 1.8.137.0 +> [!NOTE] 1.8.141.0 > A key that [**Add**](ImcComboItems#add) took for its *SelImage* gives the item the right picture, but reading **SelImage** then raises run-time error 13. [**SelImageIndex**](#selimageindex) gives the picture's number all the same. ### SelImageIndex diff --git a/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItems.md b/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItems.md index 22c0ebf3e..e8385f65d 100644 --- a/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItems.md +++ b/docs/Reference/Contributed/VBCCR18/ImageCombo/ImcComboItems.md @@ -171,7 +171,7 @@ A *Key* that another item has raises run-time error 457, and the list is as it w -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A negative *Indentation* raises run-time error 380 after the item has been put into the collection. The collection then holds the item and the list of the control does not: [**Count**](#count) is one more than the control shows, and the item has no text. Give a value of 0 or more. ### Clear diff --git a/docs/Reference/Contributed/VBCCR18/ImageList/ImlListImages.md b/docs/Reference/Contributed/VBCCR18/ImageList/ImlListImages.md index a5f7d00fb..d5e07ebcc 100644 --- a/docs/Reference/Contributed/VBCCR18/ImageList/ImlListImages.md +++ b/docs/Reference/Contributed/VBCCR18/ImageList/ImlListImages.md @@ -160,7 +160,7 @@ A call without a picture, with **Nothing** or with an empty picture, such as `Lo -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A call that raises error 457 for its key has already stored its picture. The collection is as it was, and the picture stays in the image list of Windows after the last one, where a control that the list is given to finds one picture more than [**Count**](#count) says. A program asks [**Exists**](#exists) before it adds a picture with a key that the list may have. The first picture added sets the size of the list, and what the list does with a bitmap of another size and with a bitmap's mask color is under [Filling the list](.#filling-the-list) and [Transparent parts](.#transparent-parts). diff --git a/docs/Reference/Contributed/VBCCR18/ImageList/index.md b/docs/Reference/Contributed/VBCCR18/ImageList/index.md index 6303a1557..212f7de04 100644 --- a/docs/Reference/Contributed/VBCCR18/ImageList/index.md +++ b/docs/Reference/Contributed/VBCCR18/ImageList/index.md @@ -123,7 +123,7 @@ A picture is an icon or a bitmap. An icon of another size is scaled to the size -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A bitmap smaller than the pictures of the list is not stored. The collection gets its [**ImlListImage**](ImlListImage) all the same, and from then on the items and the pictures do not match: that item draws the picture added after it, and the last item draws nothing. A bitmap wider than the pictures of the list is cut: its left part is the picture, and the rest stays in the image list of Windows as further pictures after the last one. diff --git a/docs/Reference/Contributed/VBCCR18/LabelW.md b/docs/Reference/Contributed/VBCCR18/LabelW.md index 6cc5b8d17..c214a508b 100644 --- a/docs/Reference/Contributed/VBCCR18/LabelW.md +++ b/docs/Reference/Contributed/VBCCR18/LabelW.md @@ -31,7 +31,7 @@ The control stands in place of the [**Label**](../../VB/Label/) of the VB packag Of the [common members](Common), the control has those under [Name and place](Common#name-and-place) but **HelpContextID**, [**Font**](Common#font) and [**FontQuality**](Common#fontquality), [Mouse](Common#mouse), [Dragging the control](Common#dragging-the-control), [OLE drag and drop](Common#ole-drag-and-drop) and [Right-to-left](Common#right-to-left) but **RightToLeftLayout**. It has no window, so it has neither **hWnd** nor **hWndUserControl**, and it never takes the focus, so it has no keyboard events. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A label that the program moves is no longer drawn. Once [**Left** or **Top**](Common#height-left-top-width) is set, or **Move** is called, the label reports its new place and shows nothing, there or where it was. A label is drawn while it stays where the designer put it. A [**WindowedLabel**](WindowedLabel), which has a window, can be moved. * TOC diff --git a/docs/Reference/Contributed/VBCCR18/ListBoxW.md b/docs/Reference/Contributed/VBCCR18/ListBoxW.md index f590d2da3..8d054e105 100644 --- a/docs/Reference/Contributed/VBCCR18/ListBoxW.md +++ b/docs/Reference/Contributed/VBCCR18/ListBoxW.md @@ -321,14 +321,10 @@ Whether the items are laid out in columns and the list scrolls sideways. **Boole Whether the user can select several items, and how. A member of [**MultiSelectConstants**](../../VBRUN/Constants/MultiSelectConstants). Default: **vbMultiSelectNone**. See [Selecting several items](#selecting-several-items). Another value raises run-time error 380, and a value other than **vbMultiSelectNone** raises 383 in a list with check boxes or option buttons. - -It can be assigned at run time, and the list keeps its items and its selected item. + +It can be assigned at run time, and the list keeps its items and its selected item. An empty list accepts it too, and a list that selects several items accepts an assignment to **Sorted** while it is empty. - -> [!NOTE] 1.8.137.0 -> An assignment of **vbMultiSelectSimple** or **vbMultiSelectExtended** at run time raises run-time error 380 while the list is empty, although the list then does select several items. While such a list is empty, an assignment to **AllowSelection**, **DisableNoScroll**, **MultiColumn**, **Sorted** or **UseTabStops** raises the same error and takes effect all the same. Add the items first, or set **MultiSelect** at design time. - ### NewIndex {: .no_toc } @@ -386,7 +382,7 @@ An assignment selects the item or removes its selection, and raises [**Click**]( Whether [**AddItem**](#additem) without an index puts each new item in alphabetical order. **Boolean**. Default: **False**. An **AddItem** with an index puts the item at that index all the same. -> [!NOTE] 1.8.137.0 +> [!NOTE] 1.8.141.0 > An assignment of **True** at run time does not sort the items already in the list, and the items added afterward are placed as if the list were sorted. Set **Sorted** before the first item is added. ### Style @@ -498,7 +494,7 @@ Syntax: *object*.**HitTest**( *X*, *Y* ) : *required* The position as two **Single** values, measured from the list's top left corner in the scale units of the control's container, as the OLE drag-and-drop events give it. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > In an empty list the method returns 0, not -1, for a position where the first item would be. ### HitTestInsertMark diff --git a/docs/Reference/Contributed/VBCCR18/ListView/Groups.md b/docs/Reference/Contributed/VBCCR18/ListView/Groups.md index 7b4bd1cf4..d81d1a076 100644 --- a/docs/Reference/Contributed/VBCCR18/ListView/Groups.md +++ b/docs/Reference/Contributed/VBCCR18/ListView/Groups.md @@ -44,7 +44,7 @@ End With [**Groups**](#groups) returns the groups as an [**LvwGroups**](LvwGroups) collection, and its [**Add**](LvwGroups#add) method adds one, with the text of its header and of its footer. Each group is an [**LvwGroup**](LvwGroup). An item joins a group by its [**Group**](LvwListItem#group), and leaves it when that is set to **Nothing**. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > In a 64-bit program an item cannot join a group: an assignment to its **Group** does nothing, **Group** returns **Nothing**, and every group's [**ListItemCount**](LvwGroup#listitemcount) is 0. The groups themselves, their headers and their states, work. The control shows the groups while [**GroupView**](#groupview) is **True**, in every view but the list view. With **GroupView** **False** the items are shown as they would be without groups, and the groups keep their items. diff --git a/docs/Reference/Contributed/VBCCR18/ListView/LvwColumnHeaders.md b/docs/Reference/Contributed/VBCCR18/ListView/LvwColumnHeaders.md index fe7ea0212..3376826ff 100644 --- a/docs/Reference/Contributed/VBCCR18/ListView/LvwColumnHeaders.md +++ b/docs/Reference/Contributed/VBCCR18/ListView/LvwColumnHeaders.md @@ -95,7 +95,7 @@ A negative *Index*, and one greater than [**Count**](#count) + 1, raises run-tim -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A call that raises error 380 for its *Width* or its *Alignment* has already put the column into the collection. The control has no such column, and [**Count**](#count) is one more than the columns the control shows; the members of that **LvwColumnHeader** then work on a column that is not there. A program checks a width and an alignment before it adds a column with them. Adding a column in front of others leaves the subitems of the items where they are, so the later columns then show other texts; see [Subitems](Items#subitems). diff --git a/docs/Reference/Contributed/VBCCR18/ListView/LvwGroup.md b/docs/Reference/Contributed/VBCCR18/ListView/LvwGroup.md index 4bb1e4b23..5a7cec25d 100644 --- a/docs/Reference/Contributed/VBCCR18/ListView/LvwGroup.md +++ b/docs/Reference/Contributed/VBCCR18/ListView/LvwGroup.md @@ -82,7 +82,7 @@ The number by which Windows knows the group. **Long**, read-only. The groups of The number or the key of the header's icon in the image list of [**GroupIcons**](Groups#groupicons). **Variant**. 0 when the group has none. An assignment takes a number or a key; a key that the image list does not have raises run-time error 35601. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > An assignment draws the icon in the header of the group whose [**ID**](#id) is this group's [**Index**](#index). The two are the same while the groups are only added after one another. Once a group has been added in front of others or removed, the icon goes to another group's header, or to none, and this group's **Icon** still returns the value assigned. A program that gives its groups icons adds each group after the last one and removes none, and puts them in another order with [**Sorted**](LvwGroups#sorted). ### IconIndex diff --git a/docs/Reference/Contributed/VBCCR18/ListView/LvwGroups.md b/docs/Reference/Contributed/VBCCR18/ListView/LvwGroups.md index b5c240aab..303871d1c 100644 --- a/docs/Reference/Contributed/VBCCR18/ListView/LvwGroups.md +++ b/docs/Reference/Contributed/VBCCR18/ListView/LvwGroups.md @@ -100,7 +100,7 @@ A negative *Index*, and one greater than [**Count**](#count) + 1, raises run-tim -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A call that raises error 457 for its *Key* has already given the control the group. The collection is as it was, and the control shows a group with that header that no **LvwGroup** stands for, which the program cannot remove but with [**Clear**](#clear). A program asks [**Exists**](#exists) before it adds a group with a key that the collection may have. ### Clear diff --git a/docs/Reference/Contributed/VBCCR18/ListView/LvwListItem.md b/docs/Reference/Contributed/VBCCR18/ListView/LvwListItem.md index d48c7ff11..cc3d40565 100644 --- a/docs/Reference/Contributed/VBCCR18/ListView/LvwListItem.md +++ b/docs/Reference/Contributed/VBCCR18/ListView/LvwListItem.md @@ -142,7 +142,7 @@ Syntax: *object*.**SubItems**( *Index* ) [ = *value* ] : A **String**. Assigning a number that the item has no subitem for yet adds the subitems up to it, with empty texts in between. See [Subitems](Items#subitems). -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > **SubItems** returns at most the first 259 characters of a subitem's text. The text is kept whole: the subitem's [**Text**](LvwListSubItem#text) in [**ListSubItems**](#listsubitems) returns all of it, and the control shows as much as fits. ### Tag diff --git a/docs/Reference/Contributed/VBCCR18/MonthView.md b/docs/Reference/Contributed/VBCCR18/MonthView.md index 4ca500ed4..0b7e6173d 100644 --- a/docs/Reference/Contributed/VBCCR18/MonthView.md +++ b/docs/Reference/Contributed/VBCCR18/MonthView.md @@ -92,7 +92,7 @@ Debug.Print MonthView1.CalendarCount, MonthView1.Height > Before -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > With visual styles, a **MonthColumns** of 2 or more can make the control show fewer months across than it says. The control asks Windows for the room of that many months side by side, but leaves out the gap that Windows puts between two months, so Windows may fit one month fewer. Whether it does depends on the font and the scaling of the screen: in a program run from the IDE, 2 shows one month, 3 shows two, and so on, while a built program can show them all, or all but the last for a larger number. Without visual styles the control adds the gaps itself and shows them all. **MonthRows** is right, and so are the control's width and the result of [**ComputeControlSize**](#computecontrolsize), which are those of the months shown. > > [**CalendarCount**](#calendarcount) tells how many months are shown. A program that needs *n* months across sets **MonthColumns** to *n*, and to *n* + 1 if **CalendarCount** is then short, keeping the product with **MonthRows** at 12 or less. diff --git a/docs/Reference/Contributed/VBCCR18/Pager.md b/docs/Reference/Contributed/VBCCR18/Pager.md index 702f8640a..15da84a23 100644 --- a/docs/Reference/Contributed/VBCCR18/Pager.md +++ b/docs/Reference/Contributed/VBCCR18/Pager.md @@ -77,7 +77,7 @@ Properties The edge of the form that the control is attached to, where it takes the form's whole width or height. A member of [**AlignConstants**](../../VBRUN/Constants/AlignConstants). Default: **vbAlignNone**. -> [!NOTE] 1.8.137.0, BETA 1042 +> [!NOTE] 1.8.141.0, BETA 1042 > twinBASIC has not implemented **Align**: an assignment compiles with the warning TB0009 and changes nothing, and the property goes on returning **vbAlignNone**. A program places and sizes the pager itself. ```tb probe check_run arch=win32,win64 id=pager-align diff --git a/docs/Reference/Contributed/VBCCR18/ProgressBar.md b/docs/Reference/Contributed/VBCCR18/ProgressBar.md index d4dafff08..69cd4bfad 100644 --- a/docs/Reference/Contributed/VBCCR18/ProgressBar.md +++ b/docs/Reference/Contributed/VBCCR18/ProgressBar.md @@ -98,7 +98,7 @@ Properties The edge of the form that the control is attached to, where it takes the form's whole width or height. A member of [**AlignConstants**](../../VBRUN/Constants/AlignConstants). Default: **vbAlignNone**. -> [!NOTE] 1.8.137.0, BETA 1042 +> [!NOTE] 1.8.141.0, BETA 1042 > twinBASIC has not implemented **Align**: an assignment compiles with the warning TB0009 and changes nothing, and the property goes on returning **vbAlignNone**. A program places and sizes the bar itself. ```tb probe check_run arch=win32,win64 id=progressbar-align diff --git a/docs/Reference/Contributed/VBCCR18/RichTextBox/Files.md b/docs/Reference/Contributed/VBCCR18/RichTextBox/Files.md index 09330180c..968caf482 100644 --- a/docs/Reference/Contributed/VBCCR18/RichTextBox/Files.md +++ b/docs/Reference/Contributed/VBCCR18/RichTextBox/Files.md @@ -67,7 +67,7 @@ Kill Path -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > **SaveFile** raises no error when it cannot write the file, in a folder that does not exist, on a file that another program has open, or where the user may not write. Nothing is saved, and the program cannot tell. A program that must know checks the file afterwards, for example with [**FileLen**](../../../../Modules/FileSystem/FileLen) or [**Dir**](../../../../Modules/FileSystem/Dir). Properties diff --git a/docs/Reference/Contributed/VBCCR18/RichTextBox/LinksAndProtection.md b/docs/Reference/Contributed/VBCCR18/RichTextBox/LinksAndProtection.md index 0ba467b8c..5b821bb1e 100644 --- a/docs/Reference/Contributed/VBCCR18/RichTextBox/LinksAndProtection.md +++ b/docs/Reference/Contributed/VBCCR18/RichTextBox/LinksAndProtection.md @@ -87,7 +87,7 @@ Text with [**SelProtected**](#selprotected) set to **True** cannot be changed. W -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > In a 64-bit program the numbers that [**LinkEvent**](#linkevent) and [**ModifyProtected**](#modifyprotected) give are wrong: *LinkStart*, *LinkEnd*, *wParam* and *lParam* of **LinkEvent**, and *SelStart* and *SelEnd* of **ModifyProtected**. A click on a link at the characters 4 to 22 gives 22 and 0. The *wMsg* of **LinkEvent** is right, and so is the *Allow* of **ModifyProtected**. Properties diff --git a/docs/Reference/Contributed/VBCCR18/RichTextBox/Text.md b/docs/Reference/Contributed/VBCCR18/RichTextBox/Text.md index b8a2e7527..c26896ce4 100644 --- a/docs/Reference/Contributed/VBCCR18/RichTextBox/Text.md +++ b/docs/Reference/Contributed/VBCCR18/RichTextBox/Text.md @@ -86,7 +86,7 @@ Debug.Print RichTextBox1.Text **RtbTextSendMessage** in this sample is the Windows function **SendMessageW**, declared by the program. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > An assignment of a text longer than **MaxLength**, to **Text**, **TextRTF** or **SelText**, raises the limit of the box to the length of that text, and **MaxLength** keeps returning the old value. With **MaxLength** 3, after `Text = "abcdef"` and then `Text = "ab"`, the user can type four more characters. A program that assigns long texts assigns **MaxLength** again after each of them. @@ -150,8 +150,8 @@ Whether a character that the user types replaces the character after the inserti The character that the box shows in place of each character of its text. **String**. An empty string shows the text itself. - -While the box has no password character, it returns a string of one character with the code 0, as the [**PasswordChar**](../TextBoxW#passwordchar) of a **TextBoxW** does. A string of more than one character raises run-time error 380. An assignment does nothing while [**UseSystemPasswordChar**](#usesystempasswordchar) is **True**. + +While the box has no password character, it returns an empty string, as the [**PasswordChar**](../TextBoxW#passwordchar) of a **TextBoxW** does. A string of more than one character raises run-time error 380. An assignment does nothing while [**UseSystemPasswordChar**](#usesystempasswordchar) is **True**. ### Text diff --git a/docs/Reference/Contributed/VBCCR18/StatusBar/SbrPanels.md b/docs/Reference/Contributed/VBCCR18/StatusBar/SbrPanels.md index c9c65600a..93471c560 100644 --- a/docs/Reference/Contributed/VBCCR18/StatusBar/SbrPanels.md +++ b/docs/Reference/Contributed/VBCCR18/StatusBar/SbrPanels.md @@ -97,7 +97,7 @@ A *Key* that another panel has raises run-time error 457, and nothing is added. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A *Style* that is not a member of **SbrPanelStyleConstants** raises run-time error 380 after the panel has been added. The collection keeps the new panel, with its key and its text, and the bar's window does not show it until another change lays the panels out again. A program checks the value before the call. ### Clear diff --git a/docs/Reference/Contributed/VBCCR18/StatusBar/index.md b/docs/Reference/Contributed/VBCCR18/StatusBar/index.md index 556878ac9..8abb0fec6 100644 --- a/docs/Reference/Contributed/VBCCR18/StatusBar/index.md +++ b/docs/Reference/Contributed/VBCCR18/StatusBar/index.md @@ -155,7 +155,7 @@ Properties The edge of the form that the control is attached to, where it takes the form's whole width. A member of [**AlignConstants**](../../../VBRUN/Constants/AlignConstants). -> [!NOTE] 1.8.137.0, BETA 1042 +> [!NOTE] 1.8.141.0, BETA 1042 > twinBASIC has not implemented **Align**: an assignment compiles with the warning TB0009 and changes nothing, and the property goes on returning **vbAlignNone**, also for a status bar drawn on a form. A program places and sizes the status bar itself. ```tb probe check_run arch=win32,win64 id=statusbar-align diff --git a/docs/Reference/Contributed/VBCCR18/TabStrip/TbsTabs.md b/docs/Reference/Contributed/VBCCR18/TabStrip/TbsTabs.md index 720e0e0b5..ca7dbefce 100644 --- a/docs/Reference/Contributed/VBCCR18/TabStrip/TbsTabs.md +++ b/docs/Reference/Contributed/VBCCR18/TabStrip/TbsTabs.md @@ -91,7 +91,7 @@ A negative *Index*, and one greater than [**Count**](#count) + 1, raises run-tim -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A call that raises error 457 for its key has already put its tab into the control's window. The collection is as it was, and the control draws a tab more than [**Count**](#count) says, one that no [**TbsTab**](TbsTab) stands for. A program asks [**Exists**](#exists) before it adds a tab with a key that the strip may have. ### Clear diff --git a/docs/Reference/Contributed/VBCCR18/TextBoxW.md b/docs/Reference/Contributed/VBCCR18/TextBoxW.md index e3214da99..1b0e11b9a 100644 --- a/docs/Reference/Contributed/VBCCR18/TextBoxW.md +++ b/docs/Reference/Contributed/VBCCR18/TextBoxW.md @@ -155,8 +155,8 @@ End Sub With [**NetAddressValidator**](#netaddressvalidator) set to **True** the box is the network address control of Windows, which can tell whether its text is an IPv4 address, an IPv6 address or a DNS name. It needs a program with visual styles. [**NetAddressType**](#netaddresstype) says which kinds of address the box accepts. - -[**ValidateNetAddress**](#validatenetaddress) checks the text. When the text is an address of an accepted kind, the method returns and [**NetAddressFormat**](#netaddressformat), [**NetAddressString**](#netaddressstring), [**NetAddressPortNumber**](#netaddressportnumber) and [**NetAddressPrefixLength**](#netaddressprefixlength) hold what it found. When it is not, the method raises run-time error 5, and [**ShowNetAddressErrorTip**](#shownetaddresserrortip) shows the user a balloon that says what is wrong. An empty box raises run-time error 380. + +[**ValidateNetAddress**](#validatenetaddress) checks the text. When the text is an address of an accepted kind, the method returns and [**NetAddressFormat**](#netaddressformat), [**NetAddressString**](#netaddressstring), [**NetAddressPortNumber**](#netaddressportnumber) and [**NetAddressPrefixLength**](#netaddressprefixlength) hold what it found: for `192.168.0.1:8080`, **TxtNetAddressFormatIPv4**, `192.168.0.1` and 8080. When it is not, the method raises run-time error 5, and [**ShowNetAddressErrorTip**](#shownetaddresserrortip) shows the user a balloon that says what is wrong. An empty box raises run-time error 380. ```tb check_build check_run arch=win32,win64 TextBoxW1.NetAddressValidator = True @@ -176,10 +176,6 @@ Debug.Print Err.Number ``` - -> [!WARNING] 1.8.137.0 -> **NetAddressString** is wrong for an IPv4 address: after `192.168.0.1` it holds `0.0.1.0`. **NetAddressFormat**, **NetAddressPortNumber** and **NetAddressPrefixLength** are right, and so is **NetAddressString** for an IPv6 address and for a DNS name. A program that needs the IPv4 address reads **Text**. - Properties ---------- @@ -296,7 +292,7 @@ The length of the network prefix in the text that the last [**ValidateNetAddress ### NetAddressString {: .no_toc } -The address that the last [**ValidateNetAddress**](#validatenetaddress) found, without the port number and the prefix: a DNS name as it was typed, an IPv6 address written out in its eight groups. **String**, read-only. The [warning](#checking-a-network-address) above says what it holds for an IPv4 address. +The address that the last [**ValidateNetAddress**](#validatenetaddress) found, without the port number and the prefix: a DNS name as it was typed, an IPv4 address as four numbers with dots between them, an IPv6 address written out in its eight groups. **String**, read-only. ### NetAddressType {: .no_toc } @@ -337,14 +333,10 @@ Whether a character that the user types replaces the character after the inserti The character that the box shows in place of each character of its text. **String**. An empty string, the default, shows the text itself. - -A string of more than one character raises run-time error 380. An assignment does nothing while [**UseSystemPasswordChar**](#usesystempasswordchar) is **True**. + +While the box has no password character, it returns an empty string, as the VB6 text box does. A string of more than one character raises run-time error 380. An assignment does nothing while [**UseSystemPasswordChar**](#usesystempasswordchar) is **True**. - -> [!NOTE] 1.8.137.0 -> While the box has no password character, **PasswordChar** returns a string of one character with the code 0, not the empty string that the VB6 text box returns. A program tests `AscW(TextBoxW1.PasswordChar) = 0`. - ### ScrollBars {: .no_toc } @@ -455,7 +447,7 @@ Syntax: *object*.**GetLine**( *LineNumber* ) **As String** A negative number, or a number greater than the number of lines, raises run-time error 380. -> [!NOTE] 1.8.137.0 +> [!NOTE] 1.8.141.0 > In a 64-bit program a number greater than the number of lines raises run-time error 6, *Overflow*, in **GetLine**, and [**ScrollToLine**](#scrolltoline) raises nothing and does not scroll. diff --git a/docs/Reference/Contributed/VBCCR18/ToolBar/TbrButtons.md b/docs/Reference/Contributed/VBCCR18/ToolBar/TbrButtons.md index ad3f0b23a..4df534a38 100644 --- a/docs/Reference/Contributed/VBCCR18/ToolBar/TbrButtons.md +++ b/docs/Reference/Contributed/VBCCR18/ToolBar/TbrButtons.md @@ -98,7 +98,7 @@ An *Index* below 0, and one above [**Count**](#count) + 1, raises run-time error A key as *Image* needs an image list on the toolbar that has a picture of that key: where it has not, the call raises run-time error 35601, *Element not found*, and a negative number raises error 35600. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A call that raises error 457 for its key has already put its button on the toolbar. The collection is as it was, and the toolbar shows one button more than [**Count**](#count) says, which no **TbrButton** reaches. A program asks [**Exists**](#exists) before it adds a button with a key that the toolbar may have. ### Clear diff --git a/docs/Reference/Contributed/VBCCR18/ToolBar/index.md b/docs/Reference/Contributed/VBCCR18/ToolBar/index.md index 81e686794..8ce455d6a 100644 --- a/docs/Reference/Contributed/VBCCR18/ToolBar/index.md +++ b/docs/Reference/Contributed/VBCCR18/ToolBar/index.md @@ -128,7 +128,7 @@ Debug.Print ToolBar1.Buttons(1).Key -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A change of [**TextAlignment**](#textalignment), of [**Orientation**](#orientation) that turns the buttons to the other direction, and any assignment to [**RightToLeft**](../Common#righttoleft), [**RightToLeftLayout**](../Common#righttoleftlayout) or [**RightToLeftMode**](../Common#righttoleftmode), makes the toolbar window again and gives each button a new [**TbrButton**](TbrButton) object. A variable that held a button before the change does not reach it afterwards: its **Position** is 0, and what the program sets on it is lost. The program gets the button again from [**Buttons**](#buttons-1) after such a change. @@ -258,7 +258,7 @@ Properties The edge of the form that the control is attached to, where it takes the form's whole width or height. A member of [**AlignConstants**](../../../VBRUN/Constants/AlignConstants). Default: **vbAlignNone**. -> [!NOTE] 1.8.137.0, BETA 1042 +> [!NOTE] 1.8.141.0, BETA 1042 > twinBASIC has not implemented **Align**: an assignment compiles with the warning TB0009 and changes nothing, and the property goes on returning **vbAlignNone**. A program places and sizes the toolbar itself. ```tb probe check_run arch=win32,win64 id=toolbar-align diff --git a/docs/Reference/Contributed/VBCCR18/TreeView/TvwNode.md b/docs/Reference/Contributed/VBCCR18/TreeView/TvwNode.md index 42f8e3a3b..844a64255 100644 --- a/docs/Reference/Contributed/VBCCR18/TreeView/TvwNode.md +++ b/docs/Reference/Contributed/VBCCR18/TreeView/TvwNode.md @@ -61,7 +61,7 @@ Debug.Print TreeView1.Nodes("b").FirstSibling.Text [**Root**](#root) is meant to return the root-level node a node hangs from, but it does not. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > **Root** returns the first node of the root level, whichever node it is asked of. For a node in the first branch that is the right node, and for a node in any later branch it is the wrong one. A program that needs the top of a branch goes up with [**Parent**](#parent) until it is **Nothing**. [**FirstVisible**](#firstvisible), [**LastVisible**](#lastvisible), [**NextVisible**](#nextvisible) and [**PreviousVisible**](#previousvisible) go through the nodes that are shown, which are all those that are not inside a closed branch, in the order of the tree. @@ -337,7 +337,7 @@ A value of the program's own, which the node does not use. **Variant**. A new no The label of the node. **String**. It is the default member, so `Node = "New"` sets the text. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > The property returns at most 259 characters of a longer text, with no error. The same holds for the node's part of [**FullPath**](#fullpath) and for the texts the sorting compares. A program that keeps longer texts keeps them itself, for instance in [**Tag**](#tag). ### ToolTipText diff --git a/docs/Reference/Contributed/VBCCR18/TreeView/TvwNodes.md b/docs/Reference/Contributed/VBCCR18/TreeView/TvwNodes.md index 0f75c5b6b..52f865b7c 100644 --- a/docs/Reference/Contributed/VBCCR18/TreeView/TvwNodes.md +++ b/docs/Reference/Contributed/VBCCR18/TreeView/TvwNodes.md @@ -106,7 +106,7 @@ Without a *Relative* the relationship is counted from the root level: **TvwNodeR -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A call with **TvwNodeRelationshipPrevious** and no *Relative* never returns. A program that places a node before another names that node as the *Relative*. diff --git a/docs/Reference/Contributed/VBCCR18/TreeView/index.md b/docs/Reference/Contributed/VBCCR18/TreeView/index.md index e577e2ef5..62df0c693 100644 --- a/docs/Reference/Contributed/VBCCR18/TreeView/index.md +++ b/docs/Reference/Contributed/VBCCR18/TreeView/index.md @@ -181,7 +181,7 @@ A node without children can be set to **Expanded** at once. It reads **True**, r -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > A program that sets **Expanded** to **True** on a node with children that has never been open, and whose **BeforeExpand** handler sets *Cancel*, is told the node is open. The children stay hidden and **Expanded** reads **True**. Setting **Expanded** to **False** resets it, without events. A node that was open once and was closed is not affected: its **BeforeExpand** is honoured. ## Selecting nodes @@ -340,7 +340,7 @@ Properties The edge of the form that the control is attached to, where it takes the form's whole width or height. A member of [**AlignConstants**](../../../VBRUN/Constants/AlignConstants). Default: **vbAlignNone**. -> [!NOTE] 1.8.137.0, BETA 1042 +> [!NOTE] 1.8.141.0, BETA 1042 > twinBASIC has not implemented **Align**: an assignment compiles with the warning TB0009 and changes nothing, and the property goes on returning **vbAlignNone**. A program places and sizes the tree itself. ```tb probe check_run arch=win32,win64 id=treeview-align diff --git a/docs/Reference/Contributed/VBCCR18/UpDown.md b/docs/Reference/Contributed/VBCCR18/UpDown.md index cf981c1c6..2f6e42881 100644 --- a/docs/Reference/Contributed/VBCCR18/UpDown.md +++ b/docs/Reference/Contributed/VBCCR18/UpDown.md @@ -26,7 +26,7 @@ Debug.Print UpDown1.Value ' 10 ``` -The control stands in place of the UpDown of the Microsoft common controls (`MSCOMCT2.OCX`). The [WinNativeCommonCtls](../../WinNativeCommonCtls/UpDown) package has an **UpDown** too; this one adds [**BuddyControl**](#buddycontrol) with [**BuddyProperty**](#buddyproperty), [**SyncBuddy**](#syncbuddy) and [**SyncFromBuddy**](#syncfrombuddy), [**Wrap**](#wrap), [**HotTracking**](#hottracking), [**NumberStyle**](#numberstyle), [**ThousandsSeparator**](#thousandsseparator) and the event [**BeforeChange**](#beforechange). The [**SpinBox**](SpinBox) is an **UpDown** that comes with a text box of its own. +The control stands in place of the UpDown of the Microsoft common controls (`MSCOMCT2.OCX`). The [WinNativeCommonCtls](../../WinNativeCommonCtls/UpDown) package has an **UpDown** too; this one adds [**BuddyControl**](#buddycontrol) with [**BuddyProperty**](#buddyproperty), [**SyncBuddy**](#syncbuddy) and [**SyncFromBuddy**](#syncfrombuddy), [**SetAcceleration**](#setacceleration), [**Wrap**](#wrap), [**HotTracking**](#hottracking), [**NumberStyle**](#numberstyle), [**ThousandsSeparator**](#thousandsseparator) and the event [**BeforeChange**](#beforechange). The [**SpinBox**](SpinBox) is an **UpDown** that comes with a text box of its own. Of the [common members](Common), the control has those under [Name and place](Common#name-and-place) but **HelpContextID**, [Window handles](Common#window-handles), **VisualStyles**, [Mouse](Common#mouse) but its **Click** and **DblClick** events, [Dragging the control](Common#dragging-the-control), [OLE drag and drop](Common#ole-drag-and-drop) and [Right-to-left](Common#right-to-left), **RightToLeftLayout** included. It shows no text, so it has no **Font**. It never takes the focus, so it has no keyboard events and no **SetFocus**. @@ -35,7 +35,7 @@ Of the [common members](Common), the control has those under [Name and place](Co ## The value -[**Value**](#value) is the position, from [**Min**](#min) to [**Max**](#max): 0 to 10 for a new control. The user's click on an arrow adds [**Increment**](#increment) to it, or subtracts it, and while the button is held the value moves again and again. +[**Value**](#value) is the position, from [**Min**](#min) to [**Max**](#max): 0 to 10 for a new control. The user's click on an arrow adds [**Increment**](#increment) to it, or subtracts it, and while the button is held the value moves again and again. [**SetAcceleration**](#setacceleration) makes the value move faster the longer the user holds a button. A **Value** outside the range becomes the nearest end of it. A **Min** above **Max**, or a **Max** below **Min**, raises run-time error 380. A new **Min** above **Value**, or a new **Max** below it, moves **Value** to that end. @@ -84,7 +84,7 @@ A **BuddyProperty**, or a **SyncBuddy** of **True**, with no buddy raises run-ti -> [!NOTE] 1.8.137.0, BETA 1042 +> [!NOTE] 1.8.141.0, BETA 1042 > **BuddyProperty** accepts only the properties that every control has on its form, such as **Tag**, **ToolTipText** and **Width**. A property of the buddy's own class, such as **Text** of a **TextBoxW**, raises run-time error 380, and so does **SyncBuddy** set to **True** without a **BuddyProperty**, which should take the buddy's default property. A program that wants the value in a text box assigns it in the **Change** event of the **UpDown**, or uses a [**SpinBox**](SpinBox). ```tb check_build @@ -114,7 +114,7 @@ Whether the arrow under the mouse pointer is drawn highlighted. **Boolean**. Def ### Increment {: .no_toc } -What a click on an arrow adds to or subtracts from [**Value**](#value). **Long**. Default: 1. It is not checked, so 0 and a negative number are accepted. +What a click on an arrow adds to or subtracts from [**Value**](#value). **Long**. Default: 1. It is not checked, so 0 and a negative number are accepted. While [**SetAcceleration**](#setacceleration) has given a list, it reads the first increment of the list. ### Max {: .no_toc } @@ -159,6 +159,31 @@ Whether the value goes round to the other end of the range when an arrow passes Methods ------- +### SetAcceleration +{: .no_toc } + +Makes the arrows add more the longer the user holds a button. + +Syntax: *object*.**SetAcceleration** *Delays*, *Increments* + +*Delays* +: *required* An array of numbers: for each step, the seconds the button has been held before the step's increment starts. + +*Increments* +: *required* An array of numbers of the same size: the increment of each step. + + +The two arrays have one dimension and the same bounds, or the method raises run-time error 5. An array that is not an array, and is not **Empty**, raises 380, and an array that is not allocated raises 91. Two **Empty** values take the list away and bring back [**Increment**](#increment). + + + +The delays are 0 or more, each at least the one before it: a negative delay, or one smaller than the delay before it, raises run-time error 381. + + +```tb check_build +UpDown1.SetAcceleration Array(0, 2, 5), Array(1, 5, 20) ' 1 at first, 5 after 2 s, 20 after 5 s +``` + ### SyncFromBuddy {: .no_toc } diff --git a/docs/Reference/Contributed/VBCCR18/VListBox.md b/docs/Reference/Contributed/VBCCR18/VListBox.md index 64839786f..813de1524 100644 --- a/docs/Reference/Contributed/VBCCR18/VListBox.md +++ b/docs/Reference/Contributed/VBCCR18/VListBox.md @@ -205,14 +205,10 @@ Whether the items are laid out in columns and the list scrolls sideways. **Boole Whether the user can select several items, and how. A member of [**MultiSelectConstants**](../../VBRUN/Constants/MultiSelectConstants). Default: **vbMultiSelectNone**. See [Selecting several items](ListBoxW#selecting-several-items). Another value raises run-time error 380. - -It can be assigned at run time, and the list keeps its **ListCount**. + +It can be assigned at run time, and the list keeps its **ListCount**. An empty list accepts it too. - -> [!NOTE] 1.8.137.0 -> An assignment of **vbMultiSelectSimple** or **vbMultiSelectExtended** at run time raises run-time error 380 while the list is empty, although the list then does select several items. Set **ListCount** first, or set **MultiSelect** at design time. - ### OLEDragDropScroll {: .no_toc } @@ -308,7 +304,7 @@ Syntax: *object*.**HitTest**( *X*, *Y* ) : *required* The position as two **Single** values, measured from the list's top left corner in the scale units of the control's container, as the OLE drag-and-drop events give it. -> [!WARNING] 1.8.137.0 +> [!WARNING] 1.8.141.0 > In an empty list the method returns 0, not -1, for a position where the first item would be. ### HitTestInsertMark diff --git a/docs/Reference/Contributed/VBCCR18/index.md b/docs/Reference/Contributed/VBCCR18/index.md index 77d17bfcf..b6f46eb15 100644 --- a/docs/Reference/Contributed/VBCCR18/index.md +++ b/docs/Reference/Contributed/VBCCR18/index.md @@ -11,18 +11,18 @@ exclude_from_docs: - VTableHandle - VTableInterfaceConstants - ISubclass -indexed_from: 1.8.137.0 +indexed_from: 1.8.141.0 permalink: /tB/Packages/Contributed/VBCCR18/ --- # VBCCR18 Package {: .no_toc } -**Author:** Krool. **Version:** 1.8.137.0. **On GitHub:** [Kr00l/VBCCR](https://github.com/Kr00l/VBCCR) +**Author:** Krool. **Version:** 1.8.141.0. **On GitHub:** [Kr00l/VBCCR](https://github.com/Kr00l/VBCCR) The **VBCCR18** contributed package provides controls that stand in place of the Microsoft common controls of VB6, Unicode versions of the VB6 intrinsic controls, and controls of Windows that VB6 never had. -The controls are Krool's *VB Common Controls Replacement* library, written in VB6 and published on GitHub as an ActiveX control library, `VBCCR18.OCX`; this package is the same code compiled by twinBASIC, so a project needs no OCX to be registered. Each control is a window of Windows itself, such as the list view or the rich edit control, so it draws and behaves as the same control does in any Windows program. Most members of the Microsoft controls keep their names and meanings. This section documents version 1.8.137.0, published under the MIT licence. The package describes itself as "VB Common Controls Replacement 1.8 Library (Experimental, 32-bit and 64-bit)". +The controls are Krool's *VB Common Controls Replacement* library, written in VB6 and published on GitHub as an ActiveX control library, `VBCCR18.OCX`; this package is the same code compiled by twinBASIC, so a project needs no OCX to be registered. Each control is a window of Windows itself, such as the list view or the rich edit control, so it draws and behaves as the same control does in any Windows program. Most members of the Microsoft controls keep their names and meanings. This section documents version 1.8.141.0, published under the MIT licence. The package describes itself as "VB Common Controls Replacement 1.8 Library (Experimental, 32-bit and 64-bit)". ```tb check_build check_run arch=win32,win64 ProgressBar1.Min = 0 diff --git a/docs/Reference/Contributed/VBComDlg/CommonDialog.md b/docs/Reference/Contributed/VBComDlg/CommonDialog.md index 1778fd55a..7eca60a36 100644 --- a/docs/Reference/Contributed/VBComDlg/CommonDialog.md +++ b/docs/Reference/Contributed/VBComDlg/CommonDialog.md @@ -612,7 +612,7 @@ The dialog with [**RootFolder**](#rootfolder) set to the path of a folder named ![Two Browse For Folder dialogs, each showing the text Choose the folder for the reports. above a tree whose root is the folder Projects, holding the folders Invoices, Reports and Templates, with Reports selected. The left one is small and has only OK and Cancel. The right one, in the new style, is larger and has a Folder box showing Reports, a Make New Folder button, OK and Cancel.](Images/ShowFolderBrowser.png){:width="892" height="635"} -> [!WARNING] 1.0.13.0 +> [!WARNING] 1.0.15.0 > With **CdlBIFBrowseForComputer** or **CdlBIFBrowseForPrinter**, the method returns **True** after the user selects a computer or a printer, but [**FileName**](#filename) and [**FileTitle**](#filetitle) are empty: the class reads the selection as a file system path, and a computer or a printer has none. The name of the selection is not available. To let the user choose a printer, use [**ShowPrinter**](#showprinter), which sets [**PrinterName**](#printername). ### ShowHelp @@ -682,7 +682,7 @@ Opens a modeless Replace dialog and returns the dialog's window handle. Returns Syntax: *object*.**ShowReplace** ( ) **As LongPtr** -Works identically to [**ShowFind**](#showfind), with the addition that the [**Replace**](#replace) event fires when the user clicks **Replace**, and the [**ReplaceAll**](#replaceall) event is declared for **Replace All** (but see the note under that event). The dialog starts with the current [**ReplaceWith**](#replacewith) text, and **ReplaceWith** is updated before each event. If the dialog cannot be created, the method raises **CdlBufferLengthZero** (36848) when the *Find what* or *Replace with* buffer is invalid. +Works identically to [**ShowFind**](#showfind), with the addition that the [**Replace**](#replace) event fires when the user clicks **Replace**, and the [**ReplaceAll**](#replaceall) event when the user clicks **Replace All**. The dialog starts with the current [**ReplaceWith**](#replacewith) text, and **ReplaceWith** is updated before each event. If the dialog cannot be created, the method raises **CdlBufferLengthZero** (36848) when the *Find what* or *Replace with* buffer is invalid. ### ShowSave @@ -825,13 +825,13 @@ Syntax: *object*\_**Replace**( ) ### ReplaceAll {: .no_toc } -Declared for the **Replace All** button of the Replace dialog. +Raised when the user clicks **Replace All** in the Replace dialog. Syntax: *object*\_**ReplaceAll**( ) -> [!NOTE] 1.0.13.0 -> The class never raises this event. Its test for the **Replace All** button compares the masked flags with **CdlFRFindNext** instead of **CdlFRReplaceAll**, so the comparison is never true. Clicking **Replace All** raises none of the events. +[**FindWhat**](#findwhat), [**ReplaceWith**](#replacewith), and [**Flags**](#flags) are updated before the event fires. A click on **Replace All** raises this event only, not [**Replace**](#replace) or [**FindNext**](#findnext). + ## Example diff --git a/docs/Reference/Contributed/VBComDlg/Enumerations/CdlBIFConstants.md b/docs/Reference/Contributed/VBComDlg/Enumerations/CdlBIFConstants.md index 776d61d3f..6c9c2dd37 100644 --- a/docs/Reference/Contributed/VBComDlg/Enumerations/CdlBIFConstants.md +++ b/docs/Reference/Contributed/VBComDlg/Enumerations/CdlBIFConstants.md @@ -35,7 +35,7 @@ The enumeration is declared inside the [**CommonDialog**](../CommonDialog) class | **CdlBIFBrowseFileJunctions**{: #CdlBIFBrowseFileJunctions } | `&H10000` | The user can browse into items that act as folders, such as a library or a compressed file with the extension `.zip`. | -> [!WARNING] 1.0.13.0 +> [!WARNING] 1.0.15.0 > With **CdlBIFBrowseForComputer** or **CdlBIFBrowseForPrinter**, [**ShowFolderBrowser**](../CommonDialog#showfolderbrowser) returns **True** after the user selects a computer or a printer, but [**FileName**](../CommonDialog#filename) and [**FileTitle**](../CommonDialog#filetitle) are empty: the class reads the selection as a file system path, and a computer or a printer has none. The name of the selection is not available. To let the user choose a printer, use [**ShowPrinter**](../CommonDialog#showprinter), which sets [**PrinterName**](../CommonDialog#printername). ## Used by diff --git a/docs/Reference/Contributed/VBComDlg/index.md b/docs/Reference/Contributed/VBComDlg/index.md index 4dca1c973..edb5e03dc 100644 --- a/docs/Reference/Contributed/VBComDlg/index.md +++ b/docs/Reference/Contributed/VBComDlg/index.md @@ -4,14 +4,14 @@ parent: Contributed Packages has_toc: false exclude_from_docs: - CommonDialogBase -indexed_from: 1.0.13.0 +indexed_from: 1.0.15.0 permalink: /tB/Packages/Contributed/VBComDlg/ --- # VBComDlg Package {: .no_toc } -**Author:** Krool. **Version:** 1.0.13.0 +**Author:** Krool. **Version:** 1.0.15.0 The **VBComDlg** contributed package provides the **CommonDialog** class, which wraps the Windows common dialogs (File Open, File Save, Color, Font, Print, Page Setup, Folder Browser, Find, and Replace) and the WinHelp call. Its members are modelled on those of the VB6 CommonDialog control. diff --git a/indexer/snapshots/contributed/AutoCompleteLib/api.json b/indexer/snapshots/contributed/AutoCompleteLib/api.json index 1cb3ef8a8..b70453d74 100644 --- a/indexer/snapshots/contributed/AutoCompleteLib/api.json +++ b/indexer/snapshots/contributed/AutoCompleteLib/api.json @@ -2,7 +2,7 @@ "format": 4, "package": "AutoCompleteLib", "project": "AutoCompleteLib", - "version": "1.0.3.0", + "version": "1.0.4.0", "types": [ { "name": "AutoComplete", diff --git a/indexer/snapshots/contributed/VBCCR18/api.json b/indexer/snapshots/contributed/VBCCR18/api.json index 238dbf30c..f2157f835 100644 --- a/indexer/snapshots/contributed/VBCCR18/api.json +++ b/indexer/snapshots/contributed/VBCCR18/api.json @@ -2,7 +2,7 @@ "format": 4, "package": "VBCCR18", "project": "VBCCR18", - "version": "1.8.137.0", + "version": "1.8.141.0", "types": [ { "name": "Animation", @@ -1088,8 +1088,6 @@ {"name":"ComCtlsCreateIMC","kind":"sub","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Sub ComCtlsCreateIMC(ByVal hWnd As LongPtr, ByRef hIMC As LongPtr)"},{"cond":"Not (VBA7)","signature":"Public Sub ComCtlsCreateIMC(ByVal hWnd As Long, ByRef hIMC As Long)"}]}, {"name":"ComCtlsDefaultProc","kind":"function","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Function ComCtlsDefaultProc(ByVal hWnd As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Public Function ComCtlsDefaultProc(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long","returnType":"Long"}]}, {"name":"ComCtlsDestroyIMC","kind":"sub","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Sub ComCtlsDestroyIMC(ByVal hWnd As LongPtr, ByRef hIMC As LongPtr)"},{"cond":"Not (VBA7)","signature":"Public Sub ComCtlsDestroyIMC(ByVal hWnd As Long, ByRef hIMC As Long)"}]}, - {"name":"ComCtlsDisabledThreadWindows","kind":"field","vis":"private","signature":"Private ComCtlsDisabledThreadWindows() As LongPtr"}, - {"name":"ComCtlsDisabledThreadWindowsCount","kind":"field","vis":"private","signature":"Private ComCtlsDisabledThreadWindowsCount As Long"}, {"name":"ComCtlsFrameChanged","kind":"sub","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Sub ComCtlsFrameChanged(ByVal hWnd As LongPtr)"},{"cond":"Not (VBA7)","signature":"Public Sub ComCtlsFrameChanged(ByVal hWnd As Long)"}]}, {"name":"ComCtlsFtcEnumFontFunction","kind":"function","vis":"public","returnType":"Long","signatures":[{"cond":"VBA7","signature":"Public Function ComCtlsFtcEnumFontFunction(ByVal lpELF As LongPtr, ByVal lpTM As LongPtr, ByVal FontType As Long, ByVal This As ISubclass) As Long"},{"cond":"Not (VBA7)","signature":"Public Function ComCtlsFtcEnumFontFunction(ByVal lpELF As Long, ByVal lpTM As Long, ByVal FontType As Long, ByVal This As ISubclass) As Long"}]}, {"name":"ComCtlsIPPBSetPredefinedStringsImageList","kind":"sub","vis":"public","signature":"Public Sub ComCtlsIPPBSetPredefinedStringsImageList(ByRef StringsOut() As String, ByRef CookiesOut() As Long, ByRef ControlsEnum As VBRUN.ParentControls, ByRef ImageListArray() As String)"}, @@ -1139,7 +1137,7 @@ {"name":"ComCtlsSubclassProcPtr","kind":"field","vis":"private","signature":"Private ComCtlsSubclassProcPtr As LongPtr"}, {"name":"ComCtlsSubclassW2K","kind":"field","vis":"private","cond":"(VBA7 = 0)","signature":"Private ComCtlsSubclassW2K As Integer"}, {"name":"ComCtlsSupportLevel","kind":"function","vis":"public","signature":"Public Function ComCtlsSupportLevel() As Integer","returnType":"Integer"}, - {"name":"ComCtlsTaskModal","kind":"sub","vis":"public","signature":"Public Sub ComCtlsTaskModal()"}, + {"name":"ComCtlsTaskModal","kind":"sub","vis":"public","signature":"Public Sub ComCtlsTaskModal(ByRef DisabledThreadWindows As Collection)"}, {"name":"ComCtlsTaskModalEnumThreadWndProc","kind":"function","vis":"private","signature":"Private Function ComCtlsTaskModalEnumThreadWndProc(ByVal hWnd As LongPtr, ByVal lParam As LongPtr) As Long","returnType":"Long"}, {"name":"ComCtlsTbrEnumThreadWndProc","kind":"function","vis":"public","returnType":"Long","signatures":[{"cond":"VBA7","signature":"Public Function ComCtlsTbrEnumThreadWndProc(ByVal hWnd As LongPtr, ByVal lParam As LongPtr) As Long"},{"cond":"Not (VBA7)","signature":"Public Function ComCtlsTbrEnumThreadWndProc(ByVal hWnd As Long, ByVal lParam As Long) As Long"}]}, {"name":"ComCtlsTvwSortingFunctionBinary","kind":"function","vis":"public","returnType":"Long","signatures":[{"cond":"VBA7","signature":"Public Function ComCtlsTvwSortingFunctionBinary(ByVal lParam1 As LongPtr, ByVal lParam2 As LongPtr, ByVal This As ISubclass) As Long"},{"cond":"Not (VBA7)","signature":"Public Function ComCtlsTvwSortingFunctionBinary(ByVal lParam1 As Long, ByVal lParam2 As Long, ByVal This As ISubclass) As Long"}]}, @@ -22110,7 +22108,8 @@ {"name":"Format","vis":"public","signature":"Format As Integer"}, {"name":"sin_family","vis":"public","signature":"sin_family As Integer"}, {"name":"sin_port","vis":"public","signature":"sin_port As Integer"}, - {"name":"sin_addr","vis":"public","signature":"sin_addr As Long"}, + {"name":"sin_addrHi","vis":"public","signature":"sin_addrHi As Integer"}, + {"name":"sin_addrLo","vis":"public","signature":"sin_addrLo As Integer"}, {"name":"sin_zero","vis":"public","signature":"sin_zero(0 To (8 - 1)) As Byte"} ], "members": [] @@ -24864,6 +24863,7 @@ {"name":"RightToLeftMode","kind":"property","vis":"public","signature":"Public Property Let RightToLeftMode(ByVal Value As CCRightToLeftModeConstants)","accessor":"Let"}, {"name":"SW_HIDE","kind":"const","vis":"private","signature":"Private Const SW_HIDE As Long = &H0"}, {"name":"SendMessage","kind":"function","vis":"private","declare":true,"lib":"user32","entry":"SendMessageW","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function SendMessage Lib \"user32\" Alias \"SendMessageW\" (ByVal hWnd As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByRef lParam As Any) As LongPtr","params":["ByVal hWnd As LongPtr","ByVal wMsg As Long","ByVal wParam As LongPtr","ByRef lParam As Any"],"returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function SendMessage Lib \"user32\" Alias \"SendMessageW\" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Any) As Long","params":["ByVal hWnd As Long","ByVal wMsg As Long","ByVal wParam As Long","ByRef lParam As Any"],"returnType":"Long"}]}, + {"name":"SetAcceleration","kind":"sub","vis":"public","signature":"Public Sub SetAcceleration(ByVal Delays As Variant, ByVal Increments As Variant)"}, {"name":"SetCursor","kind":"function","vis":"private","declare":true,"lib":"user32","entry":"SetCursor","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function SetCursor Lib \"user32\" (ByVal hCursor As LongPtr) As LongPtr","params":["ByVal hCursor As LongPtr"],"returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function SetCursor Lib \"user32\" (ByVal hCursor As Long) As Long","params":["ByVal hCursor As Long"],"returnType":"Long"}]}, {"name":"SetParent","kind":"function","vis":"private","declare":true,"lib":"user32","entry":"SetParent","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function SetParent Lib \"user32\" (ByVal hWndChild As LongPtr, ByVal hWndNewParent As LongPtr) As LongPtr","params":["ByVal hWndChild As LongPtr","ByVal hWndNewParent As LongPtr"],"returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function SetParent Lib \"user32\" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long","params":["ByVal hWndChild As Long","ByVal hWndNewParent As Long"],"returnType":"Long"}]}, {"name":"ShowWindow","kind":"function","vis":"private","declare":true,"lib":"user32","entry":"ShowWindow","returnType":"Long","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function ShowWindow Lib \"user32\" (ByVal hWnd As LongPtr, ByVal nCmdShow As Long) As Long","params":["ByVal hWnd As LongPtr","ByVal nCmdShow As Long"]},{"cond":"Not (VBA7)","signature":"Private Declare Function ShowWindow Lib \"user32\" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long","params":["ByVal hWnd As Long","ByVal nCmdShow As Long"]}]}, @@ -25607,7 +25607,6 @@ {"name":"CallByDispId","kind":"function","vis":"public","cond":"(TWINBASIC = 0)","signature":"Public Function CallByDispId(ByVal This As Object, ByVal DispId As Long, ByVal CallType As VbCallType, ParamArray ArgList() As Variant) As Variant","returnType":"Variant"}, {"name":"CoTaskMemAlloc","kind":"function","vis":"private","declare":true,"lib":"ole32","entry":"CoTaskMemAlloc","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function CoTaskMemAlloc Lib \"ole32\" (ByVal cBytes As LongPtr) As LongPtr","params":["ByVal cBytes As LongPtr"],"returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function CoTaskMemAlloc Lib \"ole32\" (ByVal cBytes As Long) As Long","params":["ByVal cBytes As Long"],"returnType":"Long"}]}, {"name":"CoTaskMemFree","kind":"sub","vis":"private","declare":true,"lib":"ole32","entry":"CoTaskMemFree","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub CoTaskMemFree Lib \"ole32\" (ByVal hMem As LongPtr)","params":["ByVal hMem As LongPtr"]},{"cond":"Not (VBA7)","signature":"Private Declare Sub CoTaskMemFree Lib \"ole32\" (ByVal hMem As Long)","params":["ByVal hMem As Long"]}]}, - {"name":"CookiesOutArray","kind":"field","vis":"private","signature":"Private CookiesOutArray() As Long"}, {"name":"CopyMemory","kind":"sub","vis":"private","declare":true,"lib":"kernel32","entry":"RtlMoveMemory","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As LongPtr)","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As LongPtr"]},{"cond":"Not (VBA7)","signature":"Private Declare Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As Long"]}]}, {"name":"DeActivateIPAO","kind":"sub","vis":"public","signature":"Public Sub DeActivateIPAO()"}, {"name":"DispCallFunc","kind":"function","vis":"private","declare":true,"lib":"oleaut32","entry":"DispCallFunc","returnType":"Long","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function DispCallFunc Lib \"oleaut32\" (ByVal lpvInstance As LongPtr, ByVal oVft As LongPtr, ByVal CallConv As Long, ByVal vtReturn As Integer, ByVal cActuals As Long, ByVal prgvt As LongPtr, ByVal prgpvarg As LongPtr, ByRef pvargResult As Variant) As Long","params":["ByVal lpvInstance As LongPtr","ByVal oVft As LongPtr","ByVal CallConv As Long","ByVal vtReturn As Integer","ByVal cActuals As Long","ByVal prgvt As LongPtr","ByVal prgpvarg As LongPtr","ByRef pvargResult As Variant"]},{"cond":"Not (VBA7)","signature":"Private Declare Function DispCallFunc Lib \"oleaut32\" (ByVal lpvInstance As Long, ByVal oVft As Long, ByVal CallConv As Long, ByVal vtReturn As Integer, ByVal cActuals As Long, ByVal prgvt As Long, ByVal prgpvarg As Long, ByRef pvargResult As Variant) As Long","params":["ByVal lpvInstance As Long","ByVal oVft As Long","ByVal CallConv As Long","ByVal vtReturn As Integer","ByVal cActuals As Long","ByVal prgvt As Long","ByVal prgpvarg As Long","ByRef pvargResult As Variant"]}]}, @@ -25678,7 +25677,6 @@ {"name":"S_OK","kind":"const","vis":"private","signature":"Private Const S_OK As Long = &H0"}, {"name":"SetLastError","kind":"sub","vis":"private","declare":true,"lib":"kernel32","entry":"SetLastError","params":["ByVal dwErrCode As Long"],"signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub SetLastError Lib \"kernel32\" (ByVal dwErrCode As Long)"},{"cond":"Not (VBA7)","signature":"Private Declare Sub SetLastError Lib \"kernel32\" (ByVal dwErrCode As Long)"}]}, {"name":"SetVTableHandling","kind":"function","vis":"public","signature":"Public Function SetVTableHandling(ByVal This As Object, ByVal OLEInterface As VTableInterfaceConstants) As Boolean","returnType":"Boolean"}, - {"name":"StringsOutArray","kind":"field","vis":"private","signature":"Private StringsOutArray() As String"}, {"name":"SyncObjectRectsToContainer","kind":"sub","vis":"public","signature":"Public Sub SyncObjectRectsToContainer(ByVal This As Object)"}, {"name":"SysAllocString","kind":"function","vis":"private","declare":true,"lib":"oleaut32","entry":"SysAllocString","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function SysAllocString Lib \"oleaut32\" (ByVal lpString As LongPtr) As LongPtr","params":["ByVal lpString As LongPtr"],"returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function SysAllocString Lib \"oleaut32\" (ByVal lpString As Long) As Long","params":["ByVal lpString As Long"],"returnType":"Long"}]}, {"name":"VTableCall","kind":"function","vis":"public","returnType":"Variant","signatures":[{"cond":"VBA7","signature":"Public Function VTableCall(ByVal RetType As VbVarType, ByVal InterfacePointer As LongPtr, ByVal Entry As LongPtr, ParamArray ArgList() As Variant) As Variant"},{"cond":"Not (VBA7)","signature":"Public Function VTableCall(ByVal RetType As VbVarType, ByVal InterfacePointer As Long, ByVal Entry As Long, ParamArray ArgList() As Variant) As Variant"}]}, diff --git a/indexer/snapshots/contributed/VBComDlg/api.json b/indexer/snapshots/contributed/VBComDlg/api.json index 37588cd0a..a91d38872 100644 --- a/indexer/snapshots/contributed/VBComDlg/api.json +++ b/indexer/snapshots/contributed/VBComDlg/api.json @@ -2,7 +2,7 @@ "format": 4, "package": "VBComDlg", "project": "VBComDlg", - "version": "1.0.13.0", + "version": "1.0.15.0", "types": [ { "name": "CommonDialog", @@ -309,7 +309,7 @@ {"name":"CommonDialogShareViMsg","kind":"field","vis":"private","signature":"Private CommonDialogShareViMsg As Long"}, {"name":"Copies","kind":"property","vis":"public","signature":"Public Property Get Copies() As Integer","returnType":"Integer","accessor":"Get"}, {"name":"Copies","kind":"property","vis":"public","signature":"Public Property Let Copies(ByVal Value As Integer)","accessor":"Let"}, - {"name":"CopyMemory","kind":"sub","vis":"private","declare":true,"lib":"kernel32","entry":"RtlMoveMemory","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As Long"],"signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)"},{"cond":"Not (VBA7)","signature":"Private Declare Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)"}]}, + {"name":"CopyMemory","kind":"sub","vis":"private","declare":true,"lib":"kernel32","entry":"RtlMoveMemory","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As LongPtr)","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As LongPtr"]},{"cond":"Not (VBA7)","signature":"Private Declare Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As Long"]}]}, {"name":"CreateWindowEx","kind":"function","vis":"private","declare":true,"lib":"user32","entry":"CreateWindowExW","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function CreateWindowEx Lib \"user32\" Alias \"CreateWindowExW\" (ByVal dwExStyle As Long, ByVal lpClassName As LongPtr, ByVal lpWindowName As LongPtr, ByVal dwStyle As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As LongPtr, ByVal hMenu As LongPtr, ByVal hInstance As LongPtr, ByRef lpParam As Any) As LongPtr","params":["ByVal dwExStyle As Long","ByVal lpClassName As LongPtr","ByVal lpWindowName As LongPtr","ByVal dwStyle As Long","ByVal X As Long","ByVal Y As Long","ByVal nWidth As Long","ByVal nHeight As Long","ByVal hWndParent As LongPtr","ByVal hMenu As LongPtr","ByVal hInstance As LongPtr","ByRef lpParam As Any"],"returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function CreateWindowEx Lib \"user32\" Alias \"CreateWindowExW\" (ByVal dwExStyle As Long, ByVal lpClassName As Long, ByVal lpWindowName As Long, ByVal dwStyle As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, ByRef lpParam As Any) As Long","params":["ByVal dwExStyle As Long","ByVal lpClassName As Long","ByVal lpWindowName As Long","ByVal dwStyle As Long","ByVal X As Long","ByVal Y As Long","ByVal nWidth As Long","ByVal nHeight As Long","ByVal hWndParent As Long","ByVal hMenu As Long","ByVal hInstance As Long","ByRef lpParam As Any"],"returnType":"Long"}]}, {"name":"CustomColors","kind":"property","vis":"public","signature":"Public Property Get CustomColors() As Variant","returnType":"Variant","accessor":"Get"}, {"name":"CustomColors","kind":"property","vis":"public","signature":"Public Property Let CustomColors(ByVal ArgList As Variant)","accessor":"Let"}, @@ -1493,8 +1493,6 @@ {"name":"CdlCCCallbackProc","kind":"function","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Function CdlCCCallbackProc(ByVal hDlg As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Public Function CdlCCCallbackProc(ByVal hDlg As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long","returnType":"Long"}]}, {"name":"CdlCFCallbackProc","kind":"function","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Function CdlCFCallbackProc(ByVal hDlg As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Public Function CdlCFCallbackProc(ByVal hDlg As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long","returnType":"Long"}]}, {"name":"CdlDefaultProc","kind":"function","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Function CdlDefaultProc(ByVal hWnd As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Public Function CdlDefaultProc(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long","returnType":"Long"}]}, - {"name":"CdlDisabledThreadWindows","kind":"field","vis":"private","signature":"Private CdlDisabledThreadWindows() As LongPtr"}, - {"name":"CdlDisabledThreadWindowsCount","kind":"field","vis":"private","signature":"Private CdlDisabledThreadWindowsCount As Long"}, {"name":"CdlFR1CallbackProc","kind":"function","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Function CdlFR1CallbackProc(ByVal hDlg As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Public Function CdlFR1CallbackProc(ByVal hDlg As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long","returnType":"Long"}]}, {"name":"CdlFR2CallbackProc","kind":"function","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Function CdlFR2CallbackProc(ByVal hDlg As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Public Function CdlFR2CallbackProc(ByVal hDlg As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long","returnType":"Long"}]}, {"name":"CdlFRAddHook","kind":"sub","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Sub CdlFRAddHook(ByVal hDlg As LongPtr)"},{"cond":"Not (VBA7)","signature":"Public Sub CdlFRAddHook(ByVal hDlg As Long)"}]}, @@ -1515,11 +1513,11 @@ {"name":"CdlSetSubclass","kind":"sub","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Sub CdlSetSubclass(ByVal hWnd As LongPtr, ByVal This As CommonDialog, ByVal dwRefData As LongPtr, Optional ByVal Name As String)"},{"cond":"Not (VBA7)","signature":"Public Sub CdlSetSubclass(ByVal hWnd As Long, ByVal This As CommonDialog, ByVal dwRefData As Long, Optional ByVal Name As String)"}]}, {"name":"CdlSubclassProc","kind":"function","vis":"public","signatures":[{"cond":"VBA7","signature":"Public Function CdlSubclassProc(ByVal hWnd As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr, ByVal uIdSubclass As LongPtr, ByVal dwRefData As LongPtr) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Public Function CdlSubclassProc(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long, ByVal uIdSubclass As Long, ByVal dwRefData As Long) As Long","returnType":"Long"}]}, {"name":"CdlSubclassProcPtr","kind":"field","vis":"private","signature":"Private CdlSubclassProcPtr As LongPtr"}, - {"name":"CdlTaskModal","kind":"sub","vis":"public","signature":"Public Sub CdlTaskModal()"}, + {"name":"CdlTaskModal","kind":"sub","vis":"public","signature":"Public Sub CdlTaskModal(ByRef DisabledThreadWindows As Collection)"}, {"name":"CdlTaskModalEnumThreadWndProc","kind":"function","vis":"private","signature":"Private Function CdlTaskModalEnumThreadWndProc(ByVal hWnd As LongPtr, ByVal lParam As LongPtr) As Long","returnType":"Long"}, {"name":"CoTaskMemAlloc","kind":"function","vis":"private","declare":true,"lib":"ole32","entry":"CoTaskMemAlloc","params":["ByVal cBytes As Long"],"signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function CoTaskMemAlloc Lib \"ole32\" (ByVal cBytes As Long) As LongPtr","returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function CoTaskMemAlloc Lib \"ole32\" (ByVal cBytes As Long) As Long","returnType":"Long"}]}, {"name":"CoTaskMemFree","kind":"sub","vis":"private","declare":true,"lib":"ole32","entry":"CoTaskMemFree","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub CoTaskMemFree Lib \"ole32\" (ByVal hMem As LongPtr)","params":["ByVal hMem As LongPtr"]},{"cond":"Not (VBA7)","signature":"Private Declare Sub CoTaskMemFree Lib \"ole32\" (ByVal hMem As Long)","params":["ByVal hMem As Long"]}]}, - {"name":"CopyMemory","kind":"sub","vis":"private","declare":true,"lib":"kernel32","entry":"RtlMoveMemory","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As Long"],"signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)"},{"cond":"Not (VBA7)","signature":"Private Declare Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)"}]}, + {"name":"CopyMemory","kind":"sub","vis":"private","declare":true,"lib":"kernel32","entry":"RtlMoveMemory","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As LongPtr)","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As LongPtr"]},{"cond":"Not (VBA7)","signature":"Private Declare Sub CopyMemory Lib \"kernel32\" Alias \"RtlMoveMemory\" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)","params":["ByRef Destination As Any","ByRef Source As Any","ByVal Length As Long"]}]}, {"name":"DefSubclassProc","kind":"function","vis":"private","declare":true,"lib":"comctl32","entry":"DefSubclassProc","signatures":[{"cond":"VBA7","signature":"Private Declare PtrSafe Function DefSubclassProc Lib \"comctl32\" (ByVal hWnd As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, ByVal lParam As LongPtr) As LongPtr","params":["ByVal hWnd As LongPtr","ByVal wMsg As Long","ByVal wParam As LongPtr","ByVal lParam As LongPtr"],"returnType":"LongPtr"},{"cond":"Not (VBA7)","signature":"Private Declare Function DefSubclassProc Lib \"comctl32\" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long","params":["ByVal hWnd As Long","ByVal wMsg As Long","ByVal wParam As Long","ByVal lParam As Long"],"returnType":"Long"}]}, {"name":"E_NOINTERFACE","kind":"const","vis":"private","signature":"Private Const E_NOINTERFACE As Long = &H80004002"}, {"name":"E_POINTER","kind":"const","vis":"private","signature":"Private Const E_POINTER As Long = &H80004003"}, diff --git a/test/example-projects/contributed-AutoCompleteLib/Settings b/test/example-projects/contributed-AutoCompleteLib/Settings index ab284fa1b..e0841ef3e 100644 --- a/test/example-projects/contributed-AutoCompleteLib/Settings +++ b/test/example-projects/contributed-AutoCompleteLib/Settings @@ -58,7 +58,7 @@ "versionBuild": "0", "versionMajor": "1", "versionMinor": "0", - "versionRevision": "3" + "versionRevision": "4" } ], "project.settingsVersion": 1, diff --git a/test/example-projects/contributed-VBCCR18/Settings b/test/example-projects/contributed-VBCCR18/Settings index 0143a4a51..b4b3bff9d 100644 --- a/test/example-projects/contributed-VBCCR18/Settings +++ b/test/example-projects/contributed-VBCCR18/Settings @@ -58,7 +58,7 @@ "versionBuild": "0", "versionMajor": "1", "versionMinor": "8", - "versionRevision": "137" + "versionRevision": "141" } ], "project.settingsVersion": 1, diff --git a/test/example-projects/contributed-VBComDlg/Settings b/test/example-projects/contributed-VBComDlg/Settings index 3b92d0173..1805c951c 100644 --- a/test/example-projects/contributed-VBComDlg/Settings +++ b/test/example-projects/contributed-VBComDlg/Settings @@ -58,7 +58,7 @@ "versionBuild": "0", "versionMajor": "1", "versionMinor": "0", - "versionRevision": "13" + "versionRevision": "15" } ], "project.settingsVersion": 1, diff --git a/test/package-tests/AutoCompleteLib/Sources/RunAll.twin b/test/package-tests/AutoCompleteLib/Sources/RunAll.twin index 4736578c8..5ad5fac02 100644 --- a/test/package-tests/AutoCompleteLib/Sources/RunAll.twin +++ b/test/package-tests/AutoCompleteLib/Sources/RunAll.twin @@ -1,11 +1,11 @@ ' Generated by scripts/package_tests.mjs from this project's [TestCase] Subs and expect.json: ' do not edit. Run Sub Main: each case prints PASS, FAIL or SKIP in the DEBUG CONSOLE. -' The cases are written for the package AutoCompleteLib, version 1.0.3.0. Each one checks what is +' The cases are written for the package AutoCompleteLib, version 1.0.4.0. Each one checks what is ' correct, so a case that fails names a defect of the package. Module RunAll Public Sub Main() - Expect.StartRun "AutoCompleteLib 1.0.3.0: 44 test cases" + Expect.StartRun "AutoCompleteLib 1.0.4.0: 44 test cases" On Error Resume Next Expect.StartCase Err.Clear diff --git a/test/package-tests/AutoCompleteLib/expect.json b/test/package-tests/AutoCompleteLib/expect.json index e109d96ab..2b9272af6 100644 --- a/test/package-tests/AutoCompleteLib/expect.json +++ b/test/package-tests/AutoCompleteLib/expect.json @@ -1,4 +1,4 @@ { - "version": "1.0.3.0", + "version": "1.0.4.0", "cases": {} } diff --git a/test/package-tests/VBCCR18/Sources/RichTextBoxTextTests.twin b/test/package-tests/VBCCR18/Sources/RichTextBoxTextTests.twin index 162603c40..86f23d8d4 100644 --- a/test/package-tests/VBCCR18/Sources/RichTextBoxTextTests.twin +++ b/test/package-tests/VBCCR18/Sources/RichTextBoxTextTests.twin @@ -302,12 +302,11 @@ Module RichTextBoxTextTests End Sub [TestCase] - Public Sub PasswordChar_NoneSet_IsCharacterZero() + Public Sub PasswordChar_NoneSet_IsAnEmptyString() Expect.Begin Dim f As HostForm Set f = Rig.NewForm() - Expect.AreEqual 1, Len(f.RichTextBox1.PasswordChar), "Len(PasswordChar) of a new control" - Expect.AreEqual 0, AscW(f.RichTextBox1.PasswordChar & "x"), "AscW(PasswordChar) of a new control" + Expect.AreEqual 0, Len(f.RichTextBox1.PasswordChar), "Len(PasswordChar) of a box with no password character" Unload f Expect.Done End Sub diff --git a/test/package-tests/VBCCR18/Sources/RunAll.twin b/test/package-tests/VBCCR18/Sources/RunAll.twin index 64b540630..b0140d5d7 100644 --- a/test/package-tests/VBCCR18/Sources/RunAll.twin +++ b/test/package-tests/VBCCR18/Sources/RunAll.twin @@ -1,11 +1,11 @@ ' Generated by scripts/package_tests.mjs from this project's [TestCase] Subs and expect.json: ' do not edit. Run Sub Main: each case prints PASS, FAIL or SKIP in the DEBUG CONSOLE. -' The cases are written for the package VBCCR18, version 1.8.137.0. Each one checks what is +' The cases are written for the package VBCCR18, version 1.8.141.0. Each one checks what is ' correct, so a case that fails names a defect of the package. Module RunAll Public Sub Main() - Expect.StartRun "VBCCR18 1.8.137.0: 977 test cases" + Expect.StartRun "VBCCR18 1.8.141.0: 980 test cases" On Error Resume Next Expect.StartCase Err.Clear @@ -2509,8 +2509,8 @@ Module RunAll Expect.EndCase "RichTextBoxTextTests.MultiLine_AtRunTime_Raises382", Err.Number, Err.Description Expect.StartCase Err.Clear - RichTextBoxTextTests.PasswordChar_NoneSet_IsCharacterZero - Expect.EndCase "RichTextBoxTextTests.PasswordChar_NoneSet_IsCharacterZero", Err.Number, Err.Description + RichTextBoxTextTests.PasswordChar_NoneSet_IsAnEmptyString + Expect.EndCase "RichTextBoxTextTests.PasswordChar_NoneSet_IsAnEmptyString", Err.Number, Err.Description Expect.StartCase Err.Clear RichTextBoxTextTests.PasswordChar_TwoCharacters_Raises380 @@ -3737,6 +3737,18 @@ Module RunAll Expect.EndCase "UpDownTests.SyncBuddy_True_UsesTheDefaultPropertyOfTheBuddy", Err.Number, Err.Description Expect.StartCase Err.Clear + UpDownTests.SetAcceleration_BadArrays_RaiseErrors + Expect.EndCase "UpDownTests.SetAcceleration_BadArrays_RaiseErrors", Err.Number, Err.Description + Expect.StartCase + Err.Clear + UpDownTests.SetAcceleration_BadDelays_Raise381 + Expect.EndCase "UpDownTests.SetAcceleration_BadDelays_Raise381", Err.Number, Err.Description + Expect.StartCase + Err.Clear + UpDownTests.SetAcceleration_Empty_RestoresIncrement + Expect.EndCase "UpDownTests.SetAcceleration_Empty_RestoresIncrement", Err.Number, Err.Description + Expect.StartCase + Err.Clear VListBoxTests.List_RaisesGetVirtualItem Expect.EndCase "VListBoxTests.List_RaisesGetVirtualItem", Err.Number, Err.Description Expect.StartCase diff --git a/test/package-tests/VBCCR18/Sources/UpDownTests.twin b/test/package-tests/VBCCR18/Sources/UpDownTests.twin index 15670a662..3dda3da63 100644 --- a/test/package-tests/VBCCR18/Sources/UpDownTests.twin +++ b/test/package-tests/VBCCR18/Sources/UpDownTests.twin @@ -443,6 +443,63 @@ Module UpDownTests Expect.Done End Sub + [TestCase] + Public Sub SetAcceleration_BadArrays_RaiseErrors() + Expect.Begin + Dim f As HostForm + Set f = Rig.NewForm() + Dim e() As Long + On Error Resume Next + Err.Clear + f.UpDown1.SetAcceleration Array(1, 2), Array(5) + Expect.AreEqual 5, Err.Number, "SetAcceleration of arrays with other bounds" + Err.Clear + f.UpDown1.SetAcceleration 5, Array(5) + Expect.AreEqual 380, Err.Number, "SetAcceleration of a number" + Err.Clear + f.UpDown1.SetAcceleration e, Array(5) + Expect.AreEqual 91, Err.Number, "SetAcceleration of an array that is not allocated" + On Error GoTo 0 + Unload f + Expect.Done + End Sub + + [TestCase] + Public Sub SetAcceleration_BadDelays_Raise381() + Expect.Begin + Dim f As HostForm + Set f = Rig.NewForm() + On Error Resume Next + Err.Clear + f.UpDown1.SetAcceleration Array(0, 5, 2), Array(1, 5, 20) + Expect.AreEqual 381, Err.Number, "SetAcceleration of delays out of order" + Err.Clear + f.UpDown1.SetAcceleration Array(-1, 2), Array(1, 5) + Expect.AreEqual 381, Err.Number, "SetAcceleration of a negative delay" + Err.Clear + f.UpDown1.SetAcceleration Array(0, 2, 2), Array(1, 5, 20) + Expect.AreEqual 0, Err.Number, "SetAcceleration of two equal delays" + On Error GoTo 0 + Unload f + Expect.Done + End Sub + + [TestCase] + Public Sub SetAcceleration_Empty_RestoresIncrement() + Expect.Begin + Dim f As HostForm + Set f = Rig.NewForm() + With f.UpDown1 + .Increment = 3 + .SetAcceleration Array(0, 2), Array(1, 10) + Expect.AreEqual 1, .Increment, "Increment with a list set" + .SetAcceleration Empty, Empty + Expect.AreEqual 3, .Increment, "Increment after two Empty" + End With + Unload f + Expect.Done + End Sub + End Module ' The events of an UpDown, written to Rig.Log. With CancelClicks the handler of BeforeChange sets Delta to 0. diff --git a/test/package-tests/VBCCR18/expect.json b/test/package-tests/VBCCR18/expect.json index fdaf95b47..fca74d5ed 100644 --- a/test/package-tests/VBCCR18/expect.json +++ b/test/package-tests/VBCCR18/expect.json @@ -1,5 +1,5 @@ { - "version": "1.8.137.0", + "version": "1.8.141.0", "cases": { "CommandLinkTests.GetIdealHeight_NoteThatWraps_IsHigher": { "fails": "1 of 2 checks failed: GetIdealHeight with a note of three lines at 300 pixels is more than with a note of one word: expected True, got False" @@ -40,12 +40,6 @@ "LabelWTests.Moved_IsDrawnAtItsNewPlace": { "fails": "1 of 3 checks failed: a label whose Top was set is drawn in its back color at its new place: expected True, got False" }, - "ListBoxWTests.MultiSelect_AssignedToAnEmptyList_RaisesNoError": { - "fails": "1 of 2 checks failed: MultiSelect = vbMultiSelectExtended on an empty list raises no error 380: expected True, got False" - }, - "ListBoxWTests.Sorted_AssignedToAnEmptyMultiSelectList_RaisesNoError": { - "fails": "1 of 2 checks failed: Sorted = True on an empty list that selects several items raises no error 380: expected True, got False" - }, "ListBoxWTests.HitTest_EmptyList_ReturnsMinus1": { "fails": "1 of 2 checks failed: HitTest(0, 0) of an empty list: expected -1, got 0" }, @@ -109,12 +103,6 @@ "fails": "1 of 1 checks failed: ScrollToLine 9 in a text of two lines: expected 380, got 0" } }, - "TextBoxWTests.PasswordChar_NoneSet_IsAnEmptyString": { - "fails": "1 of 1 checks failed: Len(PasswordChar) of a box with no password character: expected 0, got 1" - }, - "TextBoxWTests.ValidateNetAddress_IPv4_GivesTheAddress": { - "fails": "1 of 3 checks failed: NetAddressString of 192.168.0.1:8080: expected \"192.168.0.1\", got \"0.0.1.0\"" - }, "ToolBarTests.Buttons_Add_DuplicateKey_AddsNothingToTheWindow": { "fails": "1 of 1 checks failed: the buttons the window of the toolbar has after the refused Add: expected 1, got 2" }, @@ -142,9 +130,6 @@ "UpDownTests.SyncBuddy_True_UsesTheDefaultPropertyOfTheBuddy": { "fails": "2 of 2 checks failed: SyncBuddy = True: expected 0, got 380; the Text of the buddy after Value = 7: expected \"7\", got \"TextBoxW1\"" }, - "VListBoxTests.MultiSelect_AssignedToAnEmptyList_RaisesNoError": { - "fails": "1 of 2 checks failed: MultiSelect = vbMultiSelectSimple on an empty list raises no error 380: expected True, got False" - }, "VListBoxTests.HitTest_EmptyList_ReturnsMinus1": { "fails": "1 of 2 checks failed: HitTest(0, 0) of an empty list: expected -1, got 0" } diff --git a/test/package-tests/VBComDlg/Sources/RunAll.twin b/test/package-tests/VBComDlg/Sources/RunAll.twin index 29a8958e2..fab71cf54 100644 --- a/test/package-tests/VBComDlg/Sources/RunAll.twin +++ b/test/package-tests/VBComDlg/Sources/RunAll.twin @@ -1,11 +1,11 @@ ' Generated by scripts/package_tests.mjs from this project's [TestCase] Subs and expect.json: ' do not edit. Run Sub Main: each case prints PASS, FAIL or SKIP in the DEBUG CONSOLE. -' The cases are written for the package VBComDlg, version 1.0.13.0. Each one checks what is +' The cases are written for the package VBComDlg, version 1.0.15.0. Each one checks what is ' correct, so a case that fails names a defect of the package. Module RunAll Public Sub Main() - Expect.StartRun "VBComDlg 1.0.13.0: 58 test cases" + Expect.StartRun "VBComDlg 1.0.15.0: 58 test cases" On Error Resume Next Expect.StartCase Err.Clear diff --git a/test/package-tests/VBComDlg/expect.json b/test/package-tests/VBComDlg/expect.json index 86c19d7d6..6d28ac72e 100644 --- a/test/package-tests/VBComDlg/expect.json +++ b/test/package-tests/VBComDlg/expect.json @@ -1,12 +1,6 @@ { - "version": "1.0.13.0", + "version": "1.0.15.0", "cases": { - "FindReplaceTests.ReplaceAll_ButtonRaisesEvent": { - "fails": "1 of 2 checks failed: ReplaceAll events raised by pressing Replace All: expected 1, got 0" - }, - "FindReplaceTests.ReplaceAll_MessageRaisesEvent": { - "fails": "1 of 1 checks failed: ReplaceAll events raised by the message a Replace All press sends (FR_REPLACEALL): expected 1, got 0" - }, "FolderBrowserTests.BrowseForPrinter_SelectedPrinterIsReturned": { "fails": "1 of 4 checks failed: ShowFolderBrowser with CdlBIFBrowseForPrinter, after OK with a printer selected, returns False or sets FileName to the printer (it returned True, FileName empty): expected True, got False" }