ui.*, wizard.* & showcase.* — Declarative Win32 Wizard UI, TaskDialogs & Canvas
RaggieScript v1.0 ships two complementary native Win32 UI layers—both Per-Monitor V2 DPI aware, Dark/Light Mode adaptive, Windows Contrast Theme (SPI_GETHIGHCONTRAST) compliant, and 100% UI Automation screen-reader accessible:
- 14 Declarative In-Window Wizard Controls (
ui.welcome..ui.readySummary) rendered inside a single continuous wizard window (RsscWizardUiEngine.hpp) across all 11WizardStylethemes. - Modal Windows 11
TaskDialogIndirect& ModernIFileOpenDialogPrompts (ui.taskDialog,ui.pickFolder, etc.) for one-step micro-installers and standalone utilities.
Declarative In-Window Wizard Controls (14 Controls)
Inside wizard { step <StepId> when (<expr>) { ... } }, controls stack cleanly in keyboard tab order with automatic & accelerator mnemonics, two-way bind: ref <param> synchronization, reactive when: () => <bool> dynamic enablement/visibility, and inline validate: (val) => Validation.ok() | Validation.error("...") gating:
| Control | Signature & Named Arguments | Description |
|---|---|---|
ui.welcome | ui.welcome(title: string, subtitle?: string, body?: string, badge?: string) | Hero welcome header, subtitle, and introductory copy for the opening step. |
ui.license | ui.license(text?: string, file?: path, acceptText?: string, bind: ref boolVar) | Read-only scrollable RichEdit/Edit license pane + acceptance checkbox that gates Next > until checked! |
ui.readme | ui.readme(title: string, text?: string, file?: path) | Scrollable release notes, liner notes, or story introduction card. |
ui.heading | ui.heading(text: string, subtitle?: string) | Section divider heading inside a multi-control step. |
ui.label | ui.label(text: string, muted?: bool, when?: fn) | Dynamic word-wrapped text label (re-evaluated live when when: is supplied). |
ui.notice | ui.notice(title: string, body?: string, icon?: string) | Accessible in-window callout banner (Icon.Info, Icon.Warning, Icon.Error, Icon.Shield) replacing modal MessageBox popups! |
ui.folderPicker | ui.folderPicker(label: string, bind: ref pathVar, minFreeMB?: int, when?: fn, validate?: fn) | Destination path EDIT + Browse... (IFileOpenDialog(FOS_PICKFOLDERS)) + live volume free-space MB indicator & minFreeMB gate! |
ui.filePicker | ui.filePicker(label: string, bind: ref pathVar, filter?: string, when?: fn, validate?: fn) | Existing file EDIT + Browse... button. |
ui.textBox | ui.textBox(label: string, bind: ref strVar, placeholder?: string, password?: bool, when?: fn, validate?: fn) | Single-line text or ES_PASSWORD input with live inline validation error banner. |
ui.checkbox | ui.checkbox(text: string, bind: ref boolVar, subtitle?: string, when?: fn) | Two-way BS_AUTOCHECKBOX that immediately re-evaluates sibling when: closures on click/Spacebar! |
ui.radioCards | ui.radioCards(label: string, bind: ref strVar, options: array, when?: fn) | Keyboard-navigable radio option cards (options: [{ value, title, subtitle }]). |
ui.comboBox | ui.comboBox(label: string, bind: ref enumOrStrVar, items: array, when?: fn) | Dark/Light themed CBS_DROPDOWNLIST selector binding cleanly to string or string-backed enum parameters. |
ui.featureTree | ui.featureTree(heading?: string, showSizes?: bool, when?: fn) | Interactive feature checklist bound 1:1 to top-level feature declarations (required: true items locked checked). |
ui.readySummary | ui.readySummary(heading?: string, installButton?: string, showUacShield?: bool, notes?: string) | Displays selected destination, setup mode, and checked features, and stamps BCM_SETSHIELD on &Install when showUacShield is true! |
param enableProxy: bool = false;
param proxyPort: string = "8080";
const checkPort = (raw: string) => {
const p = int(str.trim(raw));
return (p >= 1024 && p <= 65535)
? Validation.ok()
: Validation.error("Enter a TCP port between 1024 and 65535.");
};
wizard {
step Network {
ui.checkbox(text: "Route updates through a local &proxy", bind: ref enableProxy);
ui.textBox(
label: "Local proxy &port:",
bind: ref proxyPort,
when: () => enableProxy,
validate: checkPort
);
}
}
Modal TaskDialogIndirect, Progress & File Dialogs (9 Methods)
All modal dialogs auto-bypass cleanly in /s silent mode without hanging unattended CI/GPO deployments:
| Method | Signature | Return | Description |
|---|---|---|---|
ui.progress | ui.progress(percent: int, statusText?: string, detailText?: string) | null | Updates the live progress bar (0..100), status caption, and Windows 11 Taskbar ITaskbarList3 progress! |
ui.info | ui.info(heading: string, body?: string, title?: string, details?: string) | int | Accessible informational TaskDialogIndirect. |
ui.warn | ui.warn(heading: string, body?: string, title?: string, details?: string) | int | Accessible warning TaskDialogIndirect. |
ui.error | ui.error(heading: string, body?: string, title?: string, details?: string) | int | Accessible error TaskDialogIndirect. |
ui.abort | ui.abort(heading: string, body?: string) | null | Displays accessible error dialog (unless /s silent) and aborts execution cleanly (1603). |
ui.confirm | ui.confirm(heading: string, body?: string, yesText?: string, noText?: string) | bool | Accessible Yes/Cancel confirmation returning true when confirmed. |
ui.taskDialog | ui.taskDialog(title?: string, heading: string, body?: string, icon?: string, buttons?: array, verifyText?: string, detailsTitle?: string, detailsBody?: string, choice?: ref intVar, verifiedOut?: ref boolVar) | map | Full Windows 11 Command-Link TaskDialogIndirect returning { button: int, verified: bool } and writing ref out-parameters! |
ui.pickFolder | ui.pickFolder(title?: string, initialDir?: string) | path | Opens modern Explorer IFileOpenDialog(FOS_PICKFOLDERS) (path("") if cancelled). |
ui.pickFile | ui.pickFile(title?: string, initialDir?: string, filterSpec?: string) | path | Opens modern Explorer IFileOpenDialog file picker. |
wizard.* & showcase.* — Wizard Navigation & Showcase Studio Canvas (15 Methods)
| Method | Signature | Return | Description |
|---|---|---|---|
wizard.next | wizard.next() | null | Programmatically advances to the next eligible wizard step. |
wizard.back | wizard.back() | null | Pops the visited-step stack and rewinds to the previous wizard step. |
wizard.cancel | wizard.cancel(exitCode?: int) | null | Cancels setup cleanly with standard user-exit code 1602 (ERROR_INSTALL_USEREXIT). |
showcase.navigate | showcase.navigate(pageId: string) | string | Switches the active RaggieSoft Showcase Studio canvas page ("Main", "LinerNotes", "ProgressPage"). |
showcase.setHotspotEnabled | showcase.setHotspotEnabled(hotspotId: string, enabled: bool) | bool | Enables or disables an accessible UIA BUTTON hotspot on the Showcase canvas. |
showcase.setHotspotBadge | showcase.setHotspotBadge(hotspotId: string, badgeText: string) | bool | Updates dynamic hotspot badge/caption (e.g., toggling "&Install" <-> "&Launch"). |
showcase.setHotspotVisible | showcase.setHotspotVisible(hotspotId: string, visible: bool) | bool | Shows or hides a canvas hotspot cleanly without leaving dead keyboard tab stops. |
showcase.setHotspotLabel | showcase.setHotspotLabel(hotspotId: string, labelText: string) | bool | Updates both the rendered caption and UI Automation Name property of a hotspot. |
showcase.setHotspotTooltip | showcase.setHotspotTooltip(hotspotId: string, tooltipText: string) | bool | Updates keyboard-focus and mouse-hover descriptive help text on a hotspot. |
showcase.focusHotspot | showcase.focusHotspot(hotspotId: string) | bool | Moves deterministic keyboard & UIA focus to hotspotId after a dialog or install completes. |
showcase.openBooklet | showcase.openBooklet(docRelPath: string, page?: int) | bool | Opens Showcase Studio's accessible collector liner-notes / booklet reader at optional page. |
showcase.openGallery | showcase.openGallery(galleryId: string, initialIndex?: int) | bool | Opens high-DPI collector artwork gallery lightbox with full alt-text narration. |
showcase.announceSr | showcase.announceSr(message: string, assertive?: bool) | bool | Broadcasts a polite UI Automation screen-reader live-region announcement (UiaRaiseNotificationEvent). |
showcase.playAudio | showcase.playAudio(trackRelPath: string, captionVttPath?: string) | bool | Plays captioned Showcase background audio only after explicit user unmute (never autoplays per WCAG 1.4.2). |
showcase.stopAudio | showcase.stopAudio() | bool | Stops Showcase audio playback cleanly. |
All 11 Built-In WizardStyle Themes
WizardStyle.FluentMica("fluentmica") — Windows 11 rounded card + DWM Mica/Dark titlebar.WizardStyle.AeroWizard("aerowizard") — Windows Vista/7/10 command-header Aero Wizard.WizardStyle.Standard("standard") — Clean classic two-pane enterprise installer.WizardStyle.Wizard97("wizard97") — Classic white header banner + etched divider (Wizard 97).WizardStyle.Wizard95("wizard95") — Authentic beveled 3D 1995 setup dialog with WCAG contrast protection.WizardStyle.FullScreenBlue("fullscreenblue") — Classic 1990s cobalt gradient full-screen backdrop + centered wizard.WizardStyle.FullScreenTeal("fullscreenteal") — Classic#008080desktop teal workstation setup backdrop.WizardStyle.Autorun16x9("autorun16x9") — Widescreen16:9media/book/album collector edition card.WizardStyle.OneClick("oneclick") — Streamlined single-card express installer.WizardStyle.PassiveToast("passivetoast") — Compact corner/centered progress card without modal interruption.WizardStyle.Simple("simple") — Minimal lightweight utility dialog.
ui.welcome(title, subtitle?, body?)Wizard UI
ui.license(text, acceptText, bind: ref boolVar)Wizard UI
ui.folderPicker(label, bind: ref pathVar, minFreeMB?)Wizard UI
ui.textBox(label, bind: ref strVar, when?, validate?)Wizard UI
ui.checkbox(text, bind: ref boolVar, subtitle?, when?)Wizard UI
ui.radioCards(label, bind: ref strVar, options)Wizard UI
ui.comboBox(label, bind: ref var, items)Wizard UI
ui.featureTree(heading?)Wizard UI
ui.readySummary(heading?, showUacShield?)Wizard UI
ui.taskDialog(...)Modal UI
ui.progress(percent, statusText?, detailText?)UI
wizard.cancel()Wizard UI
showcase.navigate(pageId)Showcase
showcase.setHotspotVisible / setHotspotLabel / setHotspotTooltip / focusHotspot / openBooklet / openGallery / announceSrShowcase UI