/tframestand:tframestand-developmentfrom TFrameStand
Develop FireMonkey (FMX) user interfaces with TFrameStand and TFormStand Delphi components.
Ships in TFrameStand. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
TFrameStand (https://github.com/andrea-magni/TFrameStand, docs https://andrea-magni.github.io/TFrameStand/) shows FMX frames (TFrameStand) or the content of forms (TFormStand) on a stand: a style item (from a TStyleBook) that wraps the subject with decorations and OnShow*/OnHide* animations. Minimum Delphi version: 10.4. All the calls run in the main thread.
TFrameStand / TFormStand on a form or data module. Key properties: StandBook (the TStyleBook with the stands), DefaultStandName (framestand / formstand), DefaultParent, AnimationShow/AnimationHide masks (OnShow*/OnHide*), CatchBackKey, PushMode, ResponsiveMode.StyleName = 'container'. A missing stand name gives a plain layout (no decoration).TFrameInfo<T> / TFormInfo<T> (base TSubjectInfo), the handle of one subject on its stand: Frame/Form, Stand, Container, Show, Hide, HideAndClose, Close, ShowModal, ModalResult. Keep the info, not the frame (the frame can be replaced by ResponsiveMode = rmLive).uses FrameStand, SubjectStand;
LInfo := FrameStand1.New<TDetailsFrame>(ContentLayout, 'lightbox'); // created and owned, not shown
LInfo.Frame.Customer := LCustomer;
LInfo.Show;
...
LInfo.HideAndClose; // hide animations, then free stand, frame and info
| The user wants | Use |
|---|---|
| show a frame on a stand | New<T>(AParent, AStandName) + Show, or NewAndShow<T> |
| show a frame already on the form | Use<T>(AFrame, AParent, AStandName) (not owned) |
| a dialog that returns a result | ShowModal(procedure (AFrame: T; AResult: TModalResult) ...); the frame sets FInfo.ModalResult := mrOk |
| close/cancel from many places | a Common Action: CommonActions.Add('*_cancel', procedure (AInfo: TSubjectInfo) begin AInfo.ModalResult := mrCancel end) |
| Android Back / Esc | CatchBackKey := True; non-dialog subjects opt in with BackKeyAction |
| pages, wizards, master/detail | Push<T>, Pop, PopToRoot, PushMode |
| ready-made dialog, lightbox, bottom sheet, drawer, snackbar, page | load stands\Stands.Light.style / Stands.Dark.style in the StandBook |
| toast / snackbar that goes away | Show then HideAndCloseAfter(2500) |
| different frame per screen width | Responsive.Define(TBase, TWide, 'md'), ResponsiveMode := rmLive to follow resizes |
HideAndClose, not Close, from inside the subject's own event handlers. Close frees the frame (and the control being clicked) at once; HideAndClose and ModalResult close after DefaultHideAndCloseDeferTimeMS.Close / HideAndClose the info is freed: set fields that reference it to nil (or use ShowModal with AClose = True and keep no reference).New/Use: they are bound when the subject is created. A matching control's OnClick is replaced.ModalResult only dismisses subjects shown with ShowModal; the FMX TButton.ModalResult property does not apply (it sets the host form's result): set FInfo.ModalResult in OnClick or in a Common Action.[FrameInfo] FInfo: TFrameInfo<TMyFrame> must use the frame's own class or a base class it descends from; with responsive substitution, type it on the base class requested to New.New<T>.Info.Frame with ResponsiveMode = rmLive; copy state to the new frame in OnResponsiveChange.Use frames are not owned: closing detaches them; if their parent is destroyed while shown, FMX destroys them too.AnimationShow/AnimationHide (OnShow*/OnHide*); Hide waits for the longest OnHide* animation. In a style, put size-dependent values in a TStyleTag child (TagString = 'StartValue=-ParentHeight'), not in the animation's TagString (not stored in styles).TTask.Run and touch the components only through TThread.Synchronize/TThread.Queue; the Show(ABackgroundTask...) overload is deprecated. StyleBook/DefaultStyleName are deprecated names of StandBook/DefaultStandName.OnClick, stands in the form's style book or in a separate file).Read the reference matching the task:
references/api.md — exact declarations (types, enums, units, signatures, events) and behaviors the declarations don't tell: read it before writing code against an API you are not sure about.references/lifecycle.md — New/Use/Show/Hide/HideAndClose/Close, ownership, timing, events, lifecycle methods ([BeforeShow]...), context injection, Common Actions.references/stands.md — designing stands, the stand gallery, animations, values from the stand size (TStyleTag).references/dialogs-and-navigation.md — ShowModal/ModalResult, Back/Esc (CatchBackKey, BackKeyAction), navigation stack (Push/Pop, PushMode, StackOperation).references/responsive.md — breakpoints, definitions, OnGetSubjectClass, ResponsiveMode = rmLive, OnResponsiveChange.references/formstand.md — TFormStand: forms as subjects, [Align]/[ClipChildren], differences from frames.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tframestand, tformstand, fmx, delphi, firemonkey, ui-development
npx claudepluginhub andrea-magni/tframestand --plugin tframestandOther plugins' skills for the same job