TDash Coding Manual

This area discusses and displays samples of our different visual components.
Post Reply
ONiX
Site Admin
Posts: 268
Joined: Tue Nov 18, 2025 1:27 am

TDash Coding Manual

Post by ONiX »

How to use my MCS (Modern Component Suite)

Delphi 7 Package List:

DashCommon
DashDashboard
DashBootstrapUI
DashCharts
DashPlanning
DashEditors
DashOffice
DashBarcodes
DashValidation

DashCommon.dpk

Requires only rtl and vcl · 4 units

DashGdiPlus

GDI+ bindings and the anti-aliased painter used by every control.

No palette components: supporting code used by the components above.

DashCommon

Also declared: TDashThemeManager, TDashControl, TDashLayoutCell, TDashLayoutRegion, TDashLayoutGroup, TDashAdvSplitter

Routines: DashApplyQuality, DashHover, DashLayoutRegionCount, DashParseLayout, DashRoleColor, DashStyleNativeEdit, DashTextWidth, DashTheme, DashThemeActive, DrawAvatar, DrawDashCheckBox, DrawGlyph, DrawThinScrollBar
ONiX
Site Admin
Posts: 268
Joined: Tue Nov 18, 2025 1:27 am

Re: TDash Coding Manual

Post by ONiX »

TDashLabel

Themed label with text roles, word wrap and end ellipsis

Palette: Dashboard

Ancestor: TGraphicControl

Code: Select all

{ uses DashCore }
procedure TForm1.FormCreate(Sender: TObject);
begin
  DashLabel1.Caption := 'Server status';
  DashLabel1.TextRole := trPrimary;           { follows the theme's primary text colour }
  DashLabel1.WordWrap := True;
end;
(C) 2026 by Brain Patchwork DX, LLC.
(C) 2026 by Brain Patchwork DX, LLC.
Screenshot 2026-10-30 172407.png (657 Bytes) Viewed 60881 times
ONiX
Site Admin
Posts: 268
Joined: Tue Nov 18, 2025 1:27 am

Re: TDash Coding Manual

Post by ONiX »

TDashFramework

One per form: window style, the 30 layouts with splitters, and the UI builder helpers.

The 30 layouts:
(C) 2026 by Brain Patchwork DX, LLC.
(C) 2026 by Brain Patchwork DX, LLC.
Screenshot 2026-10-08 015742.png (7.78 KiB) Viewed 51657 times
Palette: Dashboard

Ancestor: TComponent

Code: Select all

{ uses DashCore }
procedure TForm1.FormCreate(Sender: TObject);
begin
  DashFramework1.WindowStyle := dwsExtendedContent;   { or dwsWinDef / dwsWin95 / dwsWin98 }
  DashFramework1.Layout := fl3L;                      { creates Region1..Region3 }
  DashFramework1.ThemeKeys := True;                   { F4 Night/Day, F5 next theme }
  DashFramework1.AllowCustomize := True;              { Ctrl+Shift+L: users drag controls between regions }
  DashFramework1.NewCard(DashFramework1.Region(1), alClient, 0, 'Region 1');
end;
Post Reply