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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WIP.Contributed.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion WIP.VBCCR18.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/AutoCompleteLib/AutoComplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- test: InitTests.SecondCall_OnTheSameObject_Raises, InitTests.OneObjectForEachWindow_RaiseNothing -->
> [!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
Expand Down
4 changes: 2 additions & 2 deletions docs/Reference/Contributed/AutoCompleteLib/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/ComboBoxW.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- test: ComboBoxWTests.Sorted_SetAtRunTime_LeavesTheItemsInPlace -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/CommandLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CommandLink1.Height = CommandLink1.GetIdealHeight()
```

<!-- test: CommandLinkTests.GetIdealHeight_NoteThatWraps_IsHigher -->
> [!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.
Expand Down
3 changes: 1 addition & 2 deletions docs/Reference/Contributed/VBCCR18/CommonDialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/CoolBar/CbrBand.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- test: CoolBarTests.Band_Child_RefusedControl_IsNotKept -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/CoolBar/CbrBands.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ An *Index* below 0, and one above [**Count**](#count) + 1, raises run-time error
<!-- /test -->

<!-- test: CoolBarTests.Bands_Add_DuplicateKey_AddsNothingToTheWindow -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/CoolBar/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.

<!-- test: sample coolbar-align -->
> [!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
Expand Down
6 changes: 3 additions & 3 deletions docs/Reference/Contributed/VBCCR18/FontCombo.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ The buddy's list changes whenever the selection of this control changes by the u
<!-- /test -->

<!-- test: FontComboTests.SelectItem_UpdatesTheBuddy -->
> [!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
Expand Down Expand Up @@ -493,11 +493,11 @@ An empty string, and a name that is not in the list, is skipped, and the names b
<!-- /test -->

<!-- test: FontComboTests.RestoreRecent_UnknownNameBeforeAKnownOne_KeepsTheKnownOnes -->
> [!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**.

<!-- test: FontComboTests.RestoreRecent_RecentMaxZero_KeepsTheFonts -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/IPAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ As the [common events](Common#mousedown-mousemove-mouseup) of these names. Over
<!-- /test -->

<!-- test: IPAddressTests.MouseMove_OverTheBorder_XAndYAreInTwips -->
> [!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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ An assignment takes a number: a key raises run-time error 13. [**SelImageIndex**
<!-- /test -->

<!-- test: ImageComboTests.SelImage_KeyGivenToAdd_CanBeRead -->
> [!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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ A *Key* that another item has raises run-time error 457, and the list is as it w
<!-- /test -->

<!-- test: ImageComboTests.Add_NegativeIndentation_AddsNothing -->
> [!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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ A call without a picture, with **Nothing** or with an empty picture, such as `Lo
<!-- /test -->

<!-- test: ImageListTests.Add_DuplicateKey_LeavesTheWindowsListAsItWas -->
> [!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).
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/ImageList/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ A picture is an icon or a bitmap. An icon of another size is scaled to the size
<!-- /test -->

<!-- test: ImageListTests.Add_BitmapSmallerThanTheList_IsInTheWindowsList, ImageListTests.Add_BitmapWiderThanTheList_AddsOnePicture -->
> [!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.

<!-- test: ImageListTests.Clear_ResetsTheSizeAndTheHandle, ImageListTests.Remove_LastPicture_ResetsTheSizeAndTheHandle -->
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/LabelW.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- test: LabelWTests.Moved_IsDrawnAtItsNewPlace -->
> [!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
Expand Down
12 changes: 4 additions & 8 deletions docs/Reference/Contributed/VBCCR18/ListBoxW.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- test: ListBoxWTests.MultiSelect_AtRunTime_KeepsTheItemsAndTheSelection -->
It can be assigned at run time, and the list keeps its items and its selected item.
<!-- test: ListBoxWTests.MultiSelect_AtRunTime_KeepsTheItemsAndTheSelection, ListBoxWTests.MultiSelect_AssignedToAnEmptyList_RaisesNoError, ListBoxWTests.Sorted_AssignedToAnEmptyMultiSelectList_RaisesNoError -->
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.
<!-- /test -->

<!-- test: ListBoxWTests.MultiSelect_AssignedToAnEmptyList_RaisesNoError, ListBoxWTests.Sorted_AssignedToAnEmptyMultiSelectList_RaisesNoError -->
> [!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 }

Expand Down Expand Up @@ -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.

<!-- test: ListBoxWTests.Sorted_SetAtRunTime_LeavesTheItemsInPlace -->
> [!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
Expand Down Expand Up @@ -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.

<!-- test: ListBoxWTests.HitTest_EmptyList_ReturnsMinus1 -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/ListView/Groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.

<!-- test: ListViewGroupsTests.Group_Assigned_PutsTheItemInTheGroup -->
> [!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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ A negative *Index*, and one greater than [**Count**](#count) + 1, raises run-tim
<!-- /test -->

<!-- test: ListViewColumnsTests.Add_NegativeWidth_AddsNoColumn, ListViewColumnsTests.Add_AlignmentNotAMember_AddsNoColumn -->
> [!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).
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/ListView/LvwGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- test: ListViewGroupsTests.Icon_SetsTheIconOfItsOwnGroup -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/ListView/LvwGroups.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ A negative *Index*, and one greater than [**Count**](#count) + 1, raises run-tim
<!-- /test -->

<!-- test: ListViewGroupsTests.Add_DuplicateKey_AddsNoGroup -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/ListView/LvwListItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

<!-- test: ListViewItemsTests.SubItems_LongText_IsReturnedWhole -->
> [!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
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/Contributed/VBCCR18/MonthView.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Debug.Print MonthView1.CalendarCount, MonthView1.Height > Before
<!-- /test -->

<!-- test: MonthViewTests.MonthColumns_Three_ShowsThreeMonths -->
> [!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.
Expand Down
Loading