Win32MenuStyler

From Lazarus wiki
Revision as of 16:42, 18 September 2020 by Alextp (talk | contribs) (Created page with "=About= This is helper unit win32menustyler, which helper to theme TMainMenu for Lazarus Windows apps. Sometimes app has dark theme, so it's needed to make TMainMenu also dar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

About

This is helper unit win32menustyler, which helper to theme TMainMenu for Lazarus Windows apps. Sometimes app has dark theme, so it's needed to make TMainMenu also dark.

Usage:

  • add "uses win32menustyler"
  • in form's OnCreate, call
procedure TForm1.FormCreate(Sender: TObject);
begin
  MenuStyler.ApplyToForm(Self);
end;