win32: host Progress, Spinner and Stepper - #108
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.