Skip to content

win32: host Progress, Spinner and Stepper - #108

Merged
tannevaled merged 1 commit into
mainfrom
feat/win32-value-controls
Sep 6, 2026
Merged

win32: host Progress, Spinner and Stepper#108
tannevaled merged 1 commit into
mainfrom
feat/win32-value-controls

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Three more of the ten via standard common controls: Progress→msctls_progress32 (PBM_SETPOS from the fraction), Spinner→PBS_MARQUEE progress (PBM_SETMARQUEE), Stepper→msctls_updown32 (UDM_* ; new onVScroll mirrors onHScroll). ensureCommonControls registers ICC_PROGRESS_CLASS|ICC_UPDOWN_CLASS; wndProc routes WM_VSCROLL. Cross-built windows/amd64+arm64.

win32 now hosts six of ten new kinds (these + Search/TextView/Combo). Link/Date (need WM_NOTIFY + SYSTEMTIME, not written blind) and Segmented/Color (no native Win32 equivalent) stay drawn pending a Windows pass.

Three more of the ten via the standard common-control classes: Progress→
msctls_progress32 (PBM_SETRANGE32 0..1000 + PBM_SETPOS from the Number/Min/Max
fraction, read-only), Spinner→msctls_progress32 with PBS_MARQUEE (On drives
PBM_SETMARQUEE), Stepper→msctls_updown32 (UDM_SETRANGE32/SETPOS32; the new
onVScroll reads UDM_GETPOS32 and reports, mirroring onHScroll for the slider).
ensureCommonControls now registers ICC_PROGRESS_CLASS|ICC_UPDOWN_CLASS too, and
wndProc routes WM_VSCROLL. Cross-built windows/amd64+arm64.

win32 now hosts six of the ten new kinds (these + Search/TextView/Combo). The last
four — Link and Date (need WM_NOTIFY + SYSTEMTIME marshalling, too delicate to
write without a Windows session) and Segmented and Color (no native Win32
equivalent, as in GTK) — stay drawn, pending a real-Windows pass.
@tannevaled
tannevaled merged commit d3c23c1 into main Sep 6, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant