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
TDash Coding Manual
Re: TDash Coding Manual
TDashLabel
Themed label with text roles, word wrap and end ellipsis
Palette: Dashboard
Ancestor: TGraphicControl
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;
Re: TDash Coding Manual
TDashFramework
One per form: window style, the 30 layouts with splitters, and the UI builder helpers.
The 30 layouts: Palette: Dashboard
Ancestor: TComponent
One per form: window style, the 30 layouts with splitters, and the UI builder helpers.
The 30 layouts: 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;