YOUSEFUL / DELPHI / COMPONENTS

EAtlasLayoutError

Raised by the workspace, command bar, tile board and navigation for invalid panes, layouts, bounds or missing actions.

Class Unit Atlas.Layout · Inherits Exception · Product Atlas VCL

Description

Raised by TAtlasWorkspace for an alignment other than an edge or client, a blank or duplicate pane ID, a size below 24, a second client pane, an unknown ID (Unknown pane: <ID>), floating bounds out of range, FloatingWindow on a docked pane and every rejected LoadLayout text, and by TAtlasCommandBar.AddCommand, TAtlasTileBoard.AddTile and TAtlasNavigation.AddAction when the action is nil. The workspace is unchanged after each of them.

This type has no members of its own beyond those listed in its description.

Examples

Apply a layout only if it is valid

Returns False and keeps the current layout when the text does not match the panes.

pascal
uses System.SysUtils, Atlas.Layout;

function TryLoadLayout(Workspace: TAtlasWorkspace; const Text: string): Boolean;
begin
  try
    Workspace.LoadLayout(Text);
    Result := True;
  except
    on EAtlasLayoutError do Result := False;
  end;
end;

TAtlasWorkspace

Also in Atlas VCL

TAtlasTable · TAtlasGrid · TAtlasValueEdit · TAtlasTree · TAtlasWorkbook · TAtlasSheetGrid · TAtlasPivot · TAtlasInspector · TAtlasRichEdit · TAtlasSpellChecker · TAtlasChart · TAtlasGauge · TAtlasThemer · TAtlasWizard · TAtlasWorkspace · TAtlasCommandBar · TAtlasActionTile · TAtlasTileBoard · TAtlasNavigation · TAtlasMap · TAtlasGraph · TAtlasDiagram · TAtlasPrintDocument · TAtlasSchedule · TAtlasScheduler · TAtlasTaskPlan · TAtlasGantt · TAtlasPdfDocument · TAtlasPdfViewer