Gui docs: split the editor out, and fix the sizing names
The GUI Guide now says who it is for. It is the reference for building a
screen by hand in script, and it says so at the top, with a short pitch for
the editor and a link for people who would rather drag controls around.
Themes get a paragraph in the same place: what they are, that a hand-coder
does not need one, and how to pull a profile out of one if they want it.
Everything else about themes moved to the new page.
The sizing options are the important correction. HorizSizing and VertSizing
were named for the wrong edge -- "right" pinned the LEFT one -- and 4.0 EA3
renamed them anchorLeft/anchorRight/anchorTop/anchorBottom and scale. The
section is rewritten around the new names, in a table, with the everyday
choice called out. The old names follow it rather than leading, since they
still load and nobody has to change anything they have already written; what
they DO need to know is that files are now saved with the new spelling and
an older engine cannot read them.
Then the control changes, all of them aimed at someone writing script:
- List box and drop down save their rows now, so the TAML shape is written
out and the "build it in onWake" advice is no longer the only way.
getItemList/setItemList too.
- GuiControl grows a Methods list it never had. applySizing is the answer
to "I set fill in script and nothing happened", which is worth a page on
its own; childrenReordered, pullIntoView, rendersChildren, canBeChildOf.
- Tree view had no Settings section at all: IndentSize, IconImage,
IconSize, plus onGetItemIcon, refreshItem, getItemIcon.
- Tab book gains addPage, and a note that an empty book used to render as
nothing whatsoever.
- Frame set gains getFrameLayout/setFrameLayout and why you would want
them (a frame dies with the control in it).
- Button no longer seeds "Button" as a caption, which is why a blank one
would not stay blank -- and why check boxes said "Button" too.
- Scroll control leaves room for its own bar, so a child that sizes across
is no longer drawn under it.
The Gui Editor Guide is new: opening it, what each panel is for, placing and
arranging controls, the Explorer's eye and padlock columns, why the
properties pane hides fields, the menus and their shortcuts, which save
format loses what, and the Profile Editor's profiles, borders and cursors.
Written for someone who has not built a GUI before.
Home.md had no GUI entry in its reference list at all. Both pages are in it
now. And Intro to the GUI Part 1 still recommended GuiImageButtonCtrl, which
4.0 EA3 deletes -- a profile's imageAsset was already indexed by control
state, so a plain button does it -- so that carries a correction note.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JDKWjuEF5Nuw791mpU7aPF