Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

VCLTaskBarToFMX

VCL TaskBar to FMX Application

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

VCLTaskBarToFMX

Example

pascal
uses HGM.TaskBar;

procedure TForm3.FormCreate(Sender: TObject);
begin
  FTaskBar := TTaskbar.Create(Self);
  FTaskBar.OnThumbButtonClick := FOnThumbClick;
  FTaskBar.ProgressState := TTaskBarProgressState.Normal;
  FTaskBar.ProgressMaxValue := 100;
  FTaskBar.ProgressValue := 32;
  FTaskBar.TaskBarButtons.BeginUpdate; //important (lock of update for buttons)
  try
   with FTaskBar.TaskBarButtons.Add do
   begin
     Icon.LoadFromFile('image.ico');
     Hint := '123';
   end;
  finally
    FTaskBar.TaskBarButtons.EndUpdate;
  end;
  
  // call this, if you create buttons dynamicly (update added buttons)
  //FTaskBar.Initialize;
  //FTaskBar.ApplyButtonsChanges;
end;

procedure TForm3.FOnThumbClick(Sender: TObject; AButtonID: Integer);
begin
  ShowMessage(AButtonID.ToString);
end;

HGMComponents