Algosim documentation: ClosePanel

ClosePanel

Closes a panel in the Algosim IDE.

Syntax

Description

If p is either a structure of type Panel (see panels) or a GUID of a panel currently visible in the Algosim IDE, then ClosePanel(p) closes this panel. If the panel contains unsaved data, the user is asked about closing the panel. If the user chooses to abort, the function does nothing.

Examples

Close all diagram panels:

filter(panels(), (p ↦ p.type = "Diagram")) @ ClosePanel

Close all panels except consoles:

panels() @ (p ↦ (if(p.type ≠ "Console", ClosePanel(p))));

See also