UI Showcase for VisualNEO Win  (v0.6)
====================================

A gallery of ready-made UI controls running inside one VisualNEO Win Modern Web Browser.
No plug-ins and no internet needed.

  Web Awesome 3.14 (MIT, the successor to Shoelace): buttons, button groups, menu button,
  badges, copy button, switches, check boxes (with indeterminate), option buttons,
  rating, colour picker, sliders (tooltip, markers, range, vertical), progress bar/ring,
  combo box, multi-select, tag input, tree view, tags, text fields, password, search,
  number input, text area, cards, callouts, expanders, split panel, dialog, drawer,
  toasts, tooltips, spinner.
  NexusUI 2.1.6 (MIT): dials with number boxes, XY pad, multi-slider, pan, toggle, radio, button.
  Plain HTML/CSS: glow/glass/gradient buttons, glass, gradient-border, LCD and ribbon panels,
  and a hand-built list box (Ctrl/Shift multi-select, arrow keys, add/delete/move).

  Top right: Dark/Light mode and four accent colours, to show live theming.

FILES
  UI_Showcase.pub                the project (one page, one Modern Web Browser)
  Showcase\index.html            the whole interface
  Showcase\webawesome.bundle.js  Web Awesome, bundled into one classic script
  Showcase\webawesome.bundle.css its styles
  Showcase\NexusUI.min.js        NexusUI
  Showcase\*-LICENSE.txt         licences
  Scripts\*.txt                  the three NeoScript scripts as plain text
  tools\                         how the Web Awesome bundle was made

HOW IT TALKS TO VISUALNEO
  Every control with a data-id attribute reports changes:   ctl:<id>=<value>
      e.g. ctl:volume=72   ctl:notify=1   ctl:country=fr   ctl:listbox=2,5
  Messages to the page also include: shown (browser is visible, fade in)
  Other messages from the page:  ready  ping  random  about  exit  text:<notes>
  NeoScript can drive the page:
      set:<id>=<value>     sets any control, e.g. set:volume=40  set:notify=0  set:gain=0.3
      toast:<text>         shows a notification
      askexit              shows the Leave dialog (sent when the title-bar X is clicked)
  Changes are throttled to one message per control every 150 ms.

SCALING
  The page is laid out for 1920x1080 and scales to any window size by changing the root
  font size (everything is sized in rem). Unlike a CSS transform or zoom, this keeps
  drop-down lists, menus, tooltips and slider clicks in the right place.

NO WHITE FLASH AT START
  WebView2 paints white for a moment when it first appears and whenever it is resized.
  A black Container named "Cover" sits over the browser on the Showcase page.
  - Showcase Enter action: maximizes the window (under the Cover) and notes it is showing.
  - The page repeats "ready" once a second until VisualNEO answers "shown".
  - RemoveCover runs once both are true: waits 700 ms, hides Cover, sends "shown",
    and the page, which starts black, fades in.
  Waiting for "ready" (instead of a fixed delay) matters in the compiled EXE, where
  WebView2 can take longer to start than in the IDE.

EXIT
  The page sends "exit" once, after its fade-out. NeoScript sets [Exiting]=1 before Exit,
  ignores any message after that, and lets the close through.

IF THE PUB DOES NOT OPEN CLEANLY
  It was written as text, not saved by VisualNEO. To build it by hand:
  - New publication. Add a Modern Web Browser named ShowcaseBrowser, aligned to fill the page.
  - Initial URL [PubDir]Showcase\index.html. Allow messages from page ON, origin file://
  - Message variable [ShowcaseMsg]; Message Received action: GoSub "ShowcaseMessage"
  - Paste Scripts\StartupAction.txt, ShutdownAction.txt, SubroutineAction.txt into Startup,
    Shutdown and Subroutines.
