RaggieScript v1.3.0
Browse Table of Contents (17 chapters)
Getting Started (2)
Language Reference (4)
Core Standard Library (3)
Windows, MSI SQL & Native FFI (3)
Wizard UI & Studio Sandboxes (3)
Diagnostics & Bytecode ISA (2)
Master Symbol Index
6 min read Module: raggiesoft.raggiescript F1: IDH_RSSC_NS_UI (0x200D)

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:

  1. 14 Declarative In-Window Wizard Controls (ui.welcome .. ui.readySummary) rendered inside a single continuous wizard window (RsscWizardUiEngine.hpp) across all 11 WizardStyle themes.
  2. Modal Windows 11 TaskDialogIndirect & Modern IFileOpenDialog Prompts (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:

ControlSignature & Named ArgumentsDescription
ui.welcomeui.welcome(title: string, subtitle?: string, body?: string, badge?: string)Hero welcome header, subtitle, and introductory copy for the opening step.
ui.licenseui.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.readmeui.readme(title: string, text?: string, file?: path)Scrollable release notes, liner notes, or story introduction card.
ui.headingui.heading(text: string, subtitle?: string)Section divider heading inside a multi-control step.
ui.labelui.label(text: string, muted?: bool, when?: fn)Dynamic word-wrapped text label (re-evaluated live when when: is supplied).
ui.noticeui.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.folderPickerui.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.filePickerui.filePicker(label: string, bind: ref pathVar, filter?: string, when?: fn, validate?: fn)Existing file EDIT + Browse... button.
ui.textBoxui.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.checkboxui.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.radioCardsui.radioCards(label: string, bind: ref strVar, options: array, when?: fn)Keyboard-navigable radio option cards (options: [{ value, title, subtitle }]).
ui.comboBoxui.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.featureTreeui.featureTree(heading?: string, showSizes?: bool, when?: fn)Interactive feature checklist bound 1:1 to top-level feature declarations (required: true items locked checked).
ui.readySummaryui.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
        );
    }
}

All modal dialogs auto-bypass cleanly in /s silent mode without hanging unattended CI/GPO deployments:

MethodSignatureReturnDescription
ui.progressui.progress(percent: int, statusText?: string, detailText?: string)nullUpdates the live progress bar (0..100), status caption, and Windows 11 Taskbar ITaskbarList3 progress!
ui.infoui.info(heading: string, body?: string, title?: string, details?: string)intAccessible informational TaskDialogIndirect.
ui.warnui.warn(heading: string, body?: string, title?: string, details?: string)intAccessible warning TaskDialogIndirect.
ui.errorui.error(heading: string, body?: string, title?: string, details?: string)intAccessible error TaskDialogIndirect.
ui.abortui.abort(heading: string, body?: string)nullDisplays accessible error dialog (unless /s silent) and aborts execution cleanly (1603).
ui.confirmui.confirm(heading: string, body?: string, yesText?: string, noText?: string)boolAccessible Yes/Cancel confirmation returning true when confirmed.
ui.taskDialogui.taskDialog(title?: string, heading: string, body?: string, icon?: string, buttons?: array, verifyText?: string, detailsTitle?: string, detailsBody?: string, choice?: ref intVar, verifiedOut?: ref boolVar)mapFull Windows 11 Command-Link TaskDialogIndirect returning { button: int, verified: bool } and writing ref out-parameters!
ui.pickFolderui.pickFolder(title?: string, initialDir?: string)pathOpens modern Explorer IFileOpenDialog(FOS_PICKFOLDERS) (path("") if cancelled).
ui.pickFileui.pickFile(title?: string, initialDir?: string, filterSpec?: string)pathOpens modern Explorer IFileOpenDialog file picker.

wizard.* & showcase.* — Wizard Navigation & Showcase Studio Canvas (15 Methods)

MethodSignatureReturnDescription
wizard.nextwizard.next()nullProgrammatically advances to the next eligible wizard step.
wizard.backwizard.back()nullPops the visited-step stack and rewinds to the previous wizard step.
wizard.cancelwizard.cancel(exitCode?: int)nullCancels setup cleanly with standard user-exit code 1602 (ERROR_INSTALL_USEREXIT).
showcase.navigateshowcase.navigate(pageId: string)stringSwitches the active RaggieSoft Showcase Studio canvas page ("Main", "LinerNotes", "ProgressPage").
showcase.setHotspotEnabledshowcase.setHotspotEnabled(hotspotId: string, enabled: bool)boolEnables or disables an accessible UIA BUTTON hotspot on the Showcase canvas.
showcase.setHotspotBadgeshowcase.setHotspotBadge(hotspotId: string, badgeText: string)boolUpdates dynamic hotspot badge/caption (e.g., toggling "&Install" <-> "&Launch").
showcase.setHotspotVisibleshowcase.setHotspotVisible(hotspotId: string, visible: bool)boolShows or hides a canvas hotspot cleanly without leaving dead keyboard tab stops.
showcase.setHotspotLabelshowcase.setHotspotLabel(hotspotId: string, labelText: string)boolUpdates both the rendered caption and UI Automation Name property of a hotspot.
showcase.setHotspotTooltipshowcase.setHotspotTooltip(hotspotId: string, tooltipText: string)boolUpdates keyboard-focus and mouse-hover descriptive help text on a hotspot.
showcase.focusHotspotshowcase.focusHotspot(hotspotId: string)boolMoves deterministic keyboard & UIA focus to hotspotId after a dialog or install completes.
showcase.openBookletshowcase.openBooklet(docRelPath: string, page?: int)boolOpens Showcase Studio's accessible collector liner-notes / booklet reader at optional page.
showcase.openGalleryshowcase.openGallery(galleryId: string, initialIndex?: int)boolOpens high-DPI collector artwork gallery lightbox with full alt-text narration.
showcase.announceSrshowcase.announceSr(message: string, assertive?: bool)boolBroadcasts a polite UI Automation screen-reader live-region announcement (UiaRaiseNotificationEvent).
showcase.playAudioshowcase.playAudio(trackRelPath: string, captionVttPath?: string)boolPlays captioned Showcase background audio only after explicit user unmute (never autoplays per WCAG 1.4.2).
showcase.stopAudioshowcase.stopAudio()boolStops Showcase audio playback cleanly.

All 11 Built-In WizardStyle Themes

  1. WizardStyle.FluentMica ("fluentmica") — Windows 11 rounded card + DWM Mica/Dark titlebar.
  2. WizardStyle.AeroWizard ("aerowizard") — Windows Vista/7/10 command-header Aero Wizard.
  3. WizardStyle.Standard ("standard") — Clean classic two-pane enterprise installer.
  4. WizardStyle.Wizard97 ("wizard97") — Classic white header banner + etched divider (Wizard 97).
  5. WizardStyle.Wizard95 ("wizard95") — Authentic beveled 3D 1995 setup dialog with WCAG contrast protection.
  6. WizardStyle.FullScreenBlue ("fullscreenblue") — Classic 1990s cobalt gradient full-screen backdrop + centered wizard.
  7. WizardStyle.FullScreenTeal ("fullscreenteal") — Classic #008080 desktop teal workstation setup backdrop.
  8. WizardStyle.Autorun16x9 ("autorun16x9") — Widescreen 16:9 media/book/album collector edition card.
  9. WizardStyle.OneClick ("oneclick") — Streamlined single-card express installer.
  10. WizardStyle.PassiveToast ("passivetoast") — Compact corner/centered progress card without modal interruption.
  11. WizardStyle.Simple ("simple") — Minimal lightweight utility dialog.
Indexed API Calls & Symbols on This Page (14):