Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
b52c705
VBCCR18 (work in progress): snapshot of 1.8.136.0, sample template an…
KubaO Nov 18, 2026
9f9fe12
VBCCR18: the landing page, the common members, ProgressBar as the mod…
KubaO Nov 18, 2026
3723056
VBCCR18 (work in progress): the pages and test cases of thirteen cont…
KubaO Nov 18, 2026
0df55ed
VBCCR18 (work in progress): ImageList, a form per control in the samp…
KubaO Nov 18, 2026
4258703
package_tests: a new IDE every so many cases for a package in CASES_P…
KubaO Nov 19, 2026
abeb17d
VBCCR18: why its test run was unsteady, and the leads it left
KubaO Nov 19, 2026
ed2cf73
WIP.BugHunt.md: what grows and what does not before the VBCCR18 load …
KubaO Nov 19, 2026
f935dea
shoot_docs: setup vbccr, and clipShot, which cuts a control's picture…
KubaO Nov 19, 2026
165b289
VBCCR18: notes on its pictures, and what the first ones found
KubaO Nov 19, 2026
3f84cac
shoot_docs vbccr: the fixture writes where each control is, and TB_SH…
KubaO Nov 19, 2026
7c67624
shoot_docs vbccr: LabelW at its place in the designer file and not mo…
KubaO Nov 19, 2026
11dd4a0
WIP.BugHunt.md: the LabelW lead after its reproducer
KubaO Nov 19, 2026
8aa22eb
VBCCR18: a picture of each control that has a page, taken on BETA 1042
KubaO Nov 19, 2026
0834720
VBCCR18: each written control's page shows its picture; a moved Label…
KubaO Nov 19, 2026
5edb91c
VBCCR18 notes: the pictures are on the pages, and the LabelW lead is …
KubaO Nov 19, 2026
b1d03d0
WIP.VBCCR18.md: the LabelW defect is Kr00l/VBCCR#40
KubaO Nov 19, 2026
4d6f189
VBCCR18: test cases for ImageCombo, FontCombo, ListView and TreeView,…
KubaO Nov 19, 2026
e872ea6
VBCCR18: the ImageCombo, FontCombo, ListView and TreeView pages, and …
KubaO Nov 19, 2026
42a45a8
vbccr shots: a progress bar stands at its value at once, and its time…
KubaO Nov 19, 2026
f4b8326
WIP.Screenshots.md: how the vbccr setup stills a progress bar
KubaO Nov 19, 2026
06736c4
VBCCR18: pictures of TreeView and of the CC enumerations, and Progres…
KubaO Nov 19, 2026
9e69af7
page-baseline.json: the VBCCR18 pages of ImageCombo, FontCombo, ListV…
KubaO Nov 19, 2026
ac86238
VBCCR18: test cases for ToolBar, CoolBar, StatusBar, TabStrip, Pager …
KubaO Nov 19, 2026
cdc08b4
VBCCR18: the ToolBar, CoolBar, StatusBar, TabStrip, Pager and RichTex…
KubaO Nov 19, 2026
7ee8727
VBCCR18: pictures of ImageCombo, FontCombo and ListView, on BETA 1042
KubaO Nov 19, 2026
b35d5c3
page-baseline.json: the VBCCR18 pages of ToolBar, CoolBar, StatusBar,…
KubaO Nov 19, 2026
ea651d6
VBCCR18: test cases for DTPicker, MonthView, UpDown, SpinBox, Slider,…
KubaO Nov 19, 2026
ef8130c
VBCCR18: the DTPicker, MonthView, UpDown, SpinBox, Slider, HotKey, IP…
KubaO Nov 19, 2026
dcd3847
VBCCR18: pictures of ToolBar, CoolBar, StatusBar, TabStrip, Pager and…
KubaO Nov 19, 2026
1f18ecf
VBCCR18: the picture lines of ToolBar, CoolBar, StatusBar, TabStrip, …
KubaO Nov 19, 2026
82f79ec
page-baseline.json: the VBCCR18 pages of DTPicker, MonthView, UpDown,…
KubaO Nov 19, 2026
5308628
Controls.md: link the VBCCR18 control pages
KubaO Nov 19, 2026
b0238bb
VBCCR18: the picture scenes of DTPicker, MonthView, UpDown, SpinBox, …
KubaO Nov 19, 2026
b44dbfe
VBCCR18: pictures of DTPicker, MonthView, UpDown, SpinBox, Slider, Ho…
KubaO Nov 19, 2026
66b85e8
VBCCR18: RunAll.twin regenerated (975 cases)
KubaO Nov 19, 2026
9aeccd3
VBCCR18: the picture lines of DTPicker, MonthView, UpDown, SpinBox, S…
KubaO Nov 19, 2026
19319f5
page-baseline.json: the VBCCR18 pictures of DTPicker, MonthView, UpDo…
KubaO Nov 19, 2026
b4e96d0
VBCCR18: MonthView's MonthColumns warning depends on visual styles an…
KubaO Nov 19, 2026
4da6983
WIP: a UserControl's designer properties are in _IPersistStreamData; …
KubaO Nov 19, 2026
287905f
WIP.VBCCR18: _IPersistStreamData is EAEAEAEA and PropertyBag.Contents
KubaO Nov 19, 2026
3011259
VBCCR18: the settings picture scenes of the first batch's controls, P…
KubaO Nov 19, 2026
c3ef2ed
VBCCR18: settings pictures of the first batch's controls, ProgressBar…
KubaO Nov 19, 2026
d42a1c1
VBCCR18: the settings picture lines of the first batch's controls, Pr…
KubaO Nov 19, 2026
90e9bbd
page-baseline.json: the VBCCR18 settings pictures of the first batch'…
KubaO Nov 19, 2026
d65060c
VBCCR18: the Style picture scenes of ImageCombo, ComboBoxW and ListBo…
KubaO Nov 19, 2026
d0c3bf8
VBCCR18: Style pictures of ImageCombo, ComboBoxW and ListBoxW, on BET…
KubaO Nov 19, 2026
753fb88
VBCCR18: the Style picture lines of ImageCombo, ComboBoxW and ListBoxW
KubaO Nov 19, 2026
ece3049
page-baseline.json: the VBCCR18 Style pictures of ImageCombo, ComboBo…
KubaO Nov 19, 2026
ca08fa8
VBCCR18: CommonDialog shows VBComDlg's pictures of the Color, Find, F…
KubaO Nov 19, 2026
ffe56de
VBComDlg: the picture scenes of the Page Setup, Open and Save As dialogs
KubaO Nov 19, 2026
e91af5e
VBComDlg: pictures of the Page Setup, Open and Save As dialogs, on BE…
KubaO Nov 19, 2026
7be3c88
VBComDlg and VBCCR18: the CommonDialog pictures of the Page Setup, Op…
KubaO Nov 19, 2026
ce450be
page-baseline.json: the CommonDialog pictures of Page Setup, Open and…
KubaO Nov 19, 2026
b8ae9ef
VBCCR18 1.8.137.0: the template and fixture reference it; cases for L…
KubaO Nov 19, 2026
4606ecb
VBCCR18: CommandButtonW's picture with the shield, on BETA 1042
KubaO Nov 19, 2026
a30106c
VBCCR18: documented at 1.8.137.0; ListIndex = -1 and Text in a multi-…
KubaO Nov 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
77 changes: 77 additions & 0 deletions WIP.BugHunt.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,83 @@ the control opens the database, moves through it, and the bound TextBox shows ea
opened an `.accdb` is a native exception, and the run ends. The same probe passes on win32
with Jet. Not narrowed: late-bound call, ACE or 64-bit.

### UserControl (from the VBCCR18 work)

Seen on BETA 1042 with VBCCR18 1.8.136.0's controls on a form. None checked in VB6, and none
narrowed to a UserControl of our own.

- **`Err.Number` is 438 after a property assignment that succeeded.** Under `On Error Resume
Next`, `ProgressBar1.MarqueeSpeed = 5` leaves `Err.Number` 438 (*Object doesn't support this
property or method*), though the value is set and nothing is raised: the same statement with
no handler runs on. Every setter that ends with `UserControl.PropertyChanged "<Name>"` does it
(FontQuality, MousePointer, Max); `Value`, whose setter runs an `On Error Resume Next` block
after that call, leaves 0. So the suspect is `PropertyChanged`, failing inside and leaving
`Err` set.
- **A form does not make option buttons that are UserControls exclusive.** OptionButtonW's
`Value` is `OLE_OPTEXCLUSIVE`, and the control calls `UserControl.PropertyChanged "Value"`
when it becomes True, on which a VB6 form clears the other such controls of the container.
Two OptionButtonW on one form stay True together, set by code or clicked (`BM_CLICK`), the
form loaded or shown, win32 and win64. The OptionButtonW page has a WARNING and a probe
sample (`optionbuttonw-group`). Probably one defect with the 438 above: `PropertyChanged`
failing inside.
- **A process stops returning after about ten thousand loads of a VBCCR18 control.** A form with
one control (ToolBar, LabelW), made with `New`, loaded, unloaded and set to Nothing in a loop
inside one `[TestCase]`, runs at a steady speed (about 3 to 5 ms a load) and does not return
from a load between the 9,000th and the 9,500th, win32; the test project's HostForm, with one
of every control, stops between its 270th and 280th. The same loop over a form with a VB
Label or CommandButton runs 30,000 times. In the LabelW loop, which stops between its 9,140th
and 9,160th load, nothing counted runs out: GDI objects stay at 26 (peak 32), USER objects at
116 (peak 119), kernel handles at 664, and the atoms of the table that window classes and
window properties share at 1,015. Two things do grow: private memory, by about 30 KB a load
(545 MB to 826 MB, in a 32-bit process), and the time of a load, linearly (500 loads take
0.84 s at first and 2.2 s at the end), so each load leaves something on a list that a later
load goes through. Not narrowed: a UserControl of our own (twinBASIC's or the
package's), win64, a built exe, where the process waits. `package_tests` avoids it with
`CASES_PER_IDE` (`lib/package-tests.mjs`).
- **Some VBCCR18 controls leave handles behind at each load and unload** of their form (win32,
`GetGuiResources`, 300 loads): Animation, ImageList and SysInfo 4 GDI and 1 USER a load;
FrameW and WindowedLabel 2 GDI; LinkLabel 1 GDI. The others leave none. They do not cause the
stop above (2,100 such loads change nothing in the time of a HostForm load). Not checked in
VB6.
- **`Visible` reads False** for a control on a form that is loaded and not shown
(`Extender.Visible`).
- **`CallByName Control, "FontQuality", VbLet, 7`** gives -2147352567 where the property raises
380, the direct assignment's error.
- **A control named through its form is not `Is` its own object.** The sub-objects' `Tag`
setters refuse their own control with `If Value Is Shadow<Control> Then Err.Raise 35700`
(`LvwListItem.cls` 111-118, `ImcComboItem.cls` 85, the same in TvwNode, ImlListImage and the
other `Tag`s). `Set f.ListView1.ListItems(1).Tag = f.ListView1` raises nothing, nor
`Set n.Tag = f.TreeView1`; the same control first put in a variable declared
`As VBCCR18.ImageCombo` is refused. So the object the form gives out and the one the control
keeps of itself are different objects to `Is`. Whose doing (twinBASIC's extender, its `Is`,
or the package's `Shadow...` reference) is not known; VB6 not checked. The pages say nothing
of 35700 until this is settled.
- **A UserControl's own property is not reached through `As Control`.** VBCCR18's
`UpDown.BuddyProperty = "Text"` with a TextBoxW buddy raises 380: its Let checks the name
through `Dim BuddyControl As Control` (UpDown.ctl.twin 786-829), and only the extender's
members (Tag, ToolTipText, Width) pass. NOTE and failing case on UpDown.md
(`UpDownTests.BuddyProperty_Text_ShowsTheValue`). Not narrowed to a UserControl of our own;
VB6 not checked.
- **MCIWnd's string getters give Windows twice the buffer's length**: `LenB(Buffer)` (512) for a
256-character buffer, where the MCIWnd messages take a count of characters
(MCIWnd.ctl.twin 1288, 1303, 1339, 1375, 1439, 1464). A value over 255 characters would be
written past the string. The package's, not twinBASIC's; not reproduced.

### Late binding (from the VBCCR18 work)

- **An unknown member of a `Collection` reached late never returns.** Narrowed, BETA 1042, a
console project with no package, win32 and win64:
`Dim o As Object: Set o = New Collection: On Error Resume Next: Debug.Print o.Foo` does not
return; with `On Error GoTo` a handler, the same. The same statements with `New StdFont`
print error 438. Found from VBCCR18's Pager: `BuddyControl = <a Collection>` hangs in
`ControlIsValid`'s `Control.Container`. VB6, expected to raise 438, not checked; a reproducer under
`bugs/` is the next step (WIP.BugHunt.md's steps).
- **`CallByName obj, "", VbGet`** (the default member, by an empty name) raises 438. Found from
VBCCR18's `UpDown.SyncBuddy = True`, which reads the buddy's default property so
(UpDown.ctl.twin 831-866) and raises 380; NOTE and failing case on UpDown.md
(`UpDownTests.SyncBuddy_True_UsesTheDefaultPropertyOfTheBuddy`). Whether VB6 accepts an empty
name is not checked: that decides whether this is a defect.

### WinNativeCommonCtls

Seen on BETA 1042 by the `commonctls` setup (fixture `test/shots/commonctls`).
Expand Down
1 change: 1 addition & 0 deletions WIP.Contributed.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ is known about the package beyond its pages, is in a file of its own:
- [tbRegExp](WIP.tbRegExp.md)
- [tsJson](WIP.tsJson.md)
- [tsPwGen](WIP.tsPwGen.md)
- [VBCCR18](WIP.VBCCR18.md)
- [VBComDlg](WIP.VBComDlg.md)
- [VBFLXGRD18](WIP.VBFLXGRD18.md)
- [WinReg](WIP.WinReg.md)
Expand Down
41 changes: 39 additions & 2 deletions WIP.Screenshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,35 @@ line the page quotes. Its pictures are under `docs/IDE/Troubleshooting/Images/`.
form (`AutoRedraw`): the annotation layer draws on the IDE's page only, and a line ends at the
control's edge, since the form draws nothing over a child window. The heights it labels are
worked out as the control does (a line of the font plus the margins).
- **Setup `vbccr`**: `test/shots/vbccr`, VBCCRShots, the VBCCR18 section's picture of each
control, the package embedded by `startWithPackages`. **A picture of one control has no form
round it** (owner, 2026-11-19): a scene is a *sheet*, a form with several controls on it, each
as a program would use it, and `clipShot` cuts each control's picture out of the sheet's one
capture, with `CLIP_MARGIN` pixels of the form's ground round it. The program writes the
rectangles to the file `clips` in the folder of the signals before `shown`: a line for each
picture, its name and its left, top, width and height in pixels of the client area at 96 DPI
(`Place` writes a control's, `Clip` any other, such as two option buttons together).
`sheetOf` takes a sheet once for a setup's run and keeps it by the setup's `ctx`, so a sheet
of five controls is one program start. A control whose picture needs a pop-up (a dropped list,
a calendar) gets a scene of its own, taken by `sceneShot`: on a sheet the pop-up would cover
its neighbours. Any program setup can use `clipShot`. The sheets' forms (`frm<Sheet>`) and
Settings are written by `kit/vbccr/make-shots.mjs`; `MainModule.twin` is written by hand. A
control's own designer properties, such as a Style that raises 382 at run time, go in its
property bag (`_IPersistStreamData`), which make-shots writes from a `bag`
([WIP.VBCCR18.md](WIP.VBCCR18.md), *The package*).
**A picture of states, styles or an enumeration's values is a whole form** (owner), taken by
`sceneShot`: one control per value side by side, each labelled by the program with its
setting. A folder control's pictures go in `<Control>/Images/`, as VBFlexGrid's do. A tree
draws its selection in the highlight colour only with the focus: `FocusOn` gives it the focus
once the form is shown. No fixed wait stills a progress bar: at 0.6 s a bar at 60 was
once taken at 48, at 1.5 s with its light running along it. `StillBars` gives each bar one
more than its value and then its value (a themed bar shrinks without an animation), and stops
its timers at once.
**The fixture has the visual-styles manifest** (`Resources/MANIFEST/#1.xml`): without it the
package finds version 5 of the common controls, and LinkLabel and CommandLink make no window
(LinkLabel draws a hatch in its place). The sheet's controls are reached through
`f.Controls(name)`, late bound, so a wrong member name is a run-time error, which the tool
prints with the control's name. Progress bars are stilled as `commonctls`'s are.
- **Setup `dialogs`**: `test/shots/dialogs`, DialogShots, the pictures of the VBComDlg and
AutoCompleteLib sections, both packages embedded by `startWithPackages`. A CommonDialog's dialog
is taken as the `vb` setup's MsgBox is (`programDialogShot`, which `vbDialogShot` calls too): a
Expand All @@ -873,8 +902,16 @@ line the page quotes. Its pictures are under `docs/IDE/Troubleshooting/Images/`.
with the focus, so the fading is switched off (`TVS_EX_FADEINOUTEXPANDOS`). **The Font dialog
lists the machine's fonts**: its list is scrolled to start at Microsoft Himalaya
(`CB_SETTOPINDEX`), so that the rows around Microsoft Sans Serif hold only fonts that come with
Windows or Office, and none of the novelty fonts this machine has. File Open and File Save are
not taken: their navigation pane shows the user's own folders. The AutoComplete scenes type
Windows or Office, and none of the novelty fonts this machine has. **File Open and File Save are
taken hooked** (`HookEvents` True with `CdlOFNExplorer`): a hooked dialog is Windows' older one,
whose places bar names no folder of the user's, while the newer one (no hook) has a navigation
pane of the user's own folders and a breadcrumb of the real path, user name included: not
taken (owner's idea, not started: intercept, in the program, the shell calls that fill both).
Their folder Reports is the program's, its files' times set to 15 March 2026 10:30
(`TheTime`), and the dialogs show their access keys again after the first `WM_CHANGEUISTATE`,
so it is sent at every tick and the picture waits ten. **Page Setup** uses Microsoft Print to
PDF (`PrinterDefaultInit` False), not the machine's default printer. **The Print dialog is not
taken** (owner): it lists the machine's printers by name. The AutoComplete scenes type
`Ap` into a text box (`WM_CHAR`, as the package's test cases do) and lay the suggestion list
(`Auto-Suggest Dropdown`) over the form, three runs in a row (`sceneRuns`); the caret is hidden,
since it blinks.
Expand Down
Loading