YOUSEFUL / DELPHI / COMPONENTS
TAtlasTileBoard
Flow panel that lays out action tiles left to right and wraps them.
Description
A TFlowPanel with one addition: AddTile creates a TAtlasActionTile bound to an action. Tiles flow in the order they were added, wrapping to the next row, with 3-pixel margins. All other layout behaviour, including the raised bevel, is standard TFlowPanel; set BevelOuter := bvNone for a flat board. Not implemented: groups, drag reordering and tiles of several sizes.
Members
| Member | Kind | What it does |
|---|---|---|
AddTile | method | Adds a tile bound to Action and returns it, owned by the board. |
Methods
AddTile method
function AddTile(Action: TCustomAction): TAtlasActionTile;Adds a tile bound to Action and returns it, owned by the board. Raises EAtlasLayoutError when Action is nil.
Tiles.AddTile(Action).Width := 220;Examples
Launcher board
One tile per action on a flat board.
uses System.Classes, Vcl.Controls, Vcl.ActnList, Atlas.Layout;
function AddLauncher(Owner: TComponent; Parent: TWinControl; const Actions: array of TAction): TAtlasTileBoard;
var
Action: TAction;
begin
Result := TAtlasTileBoard.Create(Owner);
Result.Parent := Parent;
Result.Align := alClient;
Result.BevelOuter := bvNone;
for Action in Actions do
Result.AddTile(Action);
end;
Related
TAtlasActionTile · TAtlasCommandBar · TAtlasNavigation
Also in Atlas VCL
TAtlasTable · TAtlasGrid · TAtlasValueEdit · TAtlasTree · TAtlasWorkbook · TAtlasSheetGrid · TAtlasPivot · TAtlasInspector · TAtlasRichEdit · TAtlasSpellChecker · TAtlasChart · TAtlasGauge · TAtlasThemer · TAtlasWizard · TAtlasWorkspace · TAtlasCommandBar · TAtlasActionTile · TAtlasNavigation · TAtlasMap · TAtlasGraph · TAtlasDiagram · TAtlasPrintDocument · TAtlasSchedule · TAtlasScheduler · TAtlasTaskPlan · TAtlasGantt · TAtlasPdfDocument · TAtlasPdfViewer